Added 500 error message

This commit is contained in:
Deon George 2013-12-04 21:36:46 +11:00
parent fe73d9a7d8
commit a7fcddc48c
2 changed files with 10 additions and 1 deletions

View File

@ -20,7 +20,10 @@ abstract class lnApp_SystemMessage extends HTMLRender {
public function __call($name,$args=NULL) {
parent::__call($name,$args);
Session::instance()->set('sessionmsgs',static::$_data);
// If we are a CLI session, then we have no session
if (PHP_SAPI !== 'cli')
Session::instance()->set('sessionmsgs',static::$_data);
return $this;
}

6
views/errors/500.php Normal file
View File

@ -0,0 +1,6 @@
<h1>Oops!</h1>
<h2>500 Bother, something went wrong.</h2>
<?php echo $message; ?>
<div class="error-details">
If this keeps happening, please let us know.
</div>