Trigger user errorss
This commit is contained in:
parent
2d6b560e4f
commit
67094db9bd
|
@ -133,10 +133,12 @@ try {
|
||||||
|
|
||||||
echo "ok";
|
echo "ok";
|
||||||
} catch (DumpableException $e) {
|
} catch (DumpableException $e) {
|
||||||
|
trigger_error(print_r($e, true), E_USER_WARNING);
|
||||||
header("HTTP/1.1 400 Eh", true, 400);
|
header("HTTP/1.1 400 Eh", true, 400);
|
||||||
var_dump($e);
|
var_dump($e);
|
||||||
echo ob_get_clean();
|
echo ob_get_clean();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
trigger_error(print_r($e, true), E_USER_WARNING);
|
||||||
header("HTTP/1.1 400 Meh", true, 400);
|
header("HTTP/1.1 400 Meh", true, 400);
|
||||||
var_dump(get_class($e));
|
var_dump(get_class($e));
|
||||||
echo ob_get_clean();
|
echo ob_get_clean();
|
||||||
|
|
Loading…
Reference in a new issue