Trigger user errorss

This commit is contained in:
Graham Christensen 2017-12-21 08:28:06 -05:00
parent 2d6b560e4f
commit 67094db9bd
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -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();