diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-11 09:56:00 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-11 09:56:00 +0200 |
commit | c28a69e2eb758b70f8631b2cf5c63d12093a1fc5 (patch) | |
tree | 2b8f9c3376fcc072865da7216eb139589071fa67 /index.php | |
parent | 9189da16073a0c2fab560df7fdbe5edb331d8c47 (diff) |
Handle error more properly.
Exception are forwarded up to be able to inform the user about it.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -102,6 +102,10 @@ final class LookingGlass { } private function render_content() { + print '<div class="alert alert-danger alert-dismissable" id="error">'; + print '<button type="button" class="close" aria-hidden="true">×</button>'; + print '<strong>Error!</strong> <span id="error-text"></span>'; + print '</div>'; print '<div class="content" id="command_options">'; print '<form role="form" action="execute.php" method="post">'; print '<fieldset id="command_properties">'; |