summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-06-11 09:56:00 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-06-11 09:56:00 +0200
commitc28a69e2eb758b70f8631b2cf5c63d12093a1fc5 (patch)
tree2b8f9c3376fcc072865da7216eb139589071fa67 /index.php
parent9189da16073a0c2fab560df7fdbe5edb331d8c47 (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.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 0369515..75af1d5 100644
--- a/index.php
+++ b/index.php
@@ -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">&times;</button>';
+ print '<strong>Error!</strong>&nbsp;<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">';