Some temporary error handling
parent
dc07f5e757
commit
fc38673b7d
@ -1,11 +1,13 @@
|
||||
<?php
|
||||
|
||||
function print_error($title, $message) {
|
||||
require_once(__DIR__ . '/output.php');
|
||||
|
||||
$error = array();
|
||||
$error['type'] = 'ERROR';
|
||||
$error['title'] = $title;
|
||||
$error['message'] = $message;
|
||||
|
||||
print json_encode($error);
|
||||
print output($error);
|
||||
return;
|
||||
}
|
Loading…
Reference in New Issue