Added 500 error message
This commit is contained in:
parent
fe73d9a7d8
commit
a7fcddc48c
@ -20,7 +20,10 @@ abstract class lnApp_SystemMessage extends HTMLRender {
|
||||
public function __call($name,$args=NULL) {
|
||||
parent::__call($name,$args);
|
||||
|
||||
// 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
6
views/errors/500.php
Normal 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>
|
Reference in New Issue
Block a user