diff --git a/lib/Explain/Controller.pm b/lib/Explain/Controller.pm index 446311e..a89924b 100755 --- a/lib/Explain/Controller.pm +++ b/lib/Explain/Controller.pm @@ -235,7 +235,7 @@ sub index { $self->app->log->info( $EVAL_ERROR ); # leave... - return $self->render( message => q|Failed to parse your plan| ); + return $self->render( 'message' => q|Failed to parse your plan:|, 'details' => $EVAL_ERROR ); } # save to database diff --git a/public/css/style.css b/public/css/style.css index afca9d0..4b34c07 100755 --- a/public/css/style.css +++ b/public/css/style.css @@ -138,6 +138,7 @@ footer a:hover {color:#e80} div.message { border: 2px solid #f00; padding: 0.5em; text-align: center; background: #600; } div.message p.message { font-weight: bold; font-size: 2em; color: #ff0; padding: 0; margin: 0; margin-bottom: 1em; } +div.message p.details { background: #300; font-weight: normal; font-size: 1.5em; color: #cc0; padding: 10px; margin-left: 32px; margin-right: 32px; margin-bottom: 1em; text-align: left; border: 1px solid #ff0; } div.message p.messageSimple { margin-bottom: 0.5em; margin-top: 0.5em; } div.message p.hint { color: #ff0; padding: 0; margin: 0; } div.message p.hint a { color: #ff0; } diff --git a/templates/controller/index.html.ep b/templates/controller/index.html.ep index 237b3e4..c5a8f4f 100755 --- a/templates/controller/index.html.ep +++ b/templates/controller/index.html.ep @@ -9,6 +9,9 @@ % if ( stash( 'message' ) ) {
% }