Last active
February 28, 2016 19:49
-
-
Save andevsoftware/dea855ad1d7ea31843f3 to your computer and use it in GitHub Desktop.
Phalcon REST - Outputting Errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
// Handle application | |
} catch (Exception $e) { | |
$response = $di->get(Services::RESPONSE); | |
$response->setErrorContent($e, true); // true enables debugMode (more error information) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment