whoops page |
Hello,
i use an package from github: https://github.com/fattureincloud/fattur...ud-php-sdk and i integrate it correctly.. my problem is when use it in a specefic conditions my website return the "whoops page" although i use the Exception! my code is: PHP Code: $config = FattureInCloud\Configuration::getDefaultConfiguration()->setAccessToken('tokenvalue'); in error log i see this: resulted in a `422 Unprocessable Entity` response: {"error":{"message":"Invalid query syntax.","validation_result":null}} My questio is: How i change the whoops page by the error message returned?! because i not need by script stopped and must continue working with diplayong error message! thanks..
Whoops page means there is an uncaught exception.
Catch the exception correctly and do what you want.
Whoops page will come only on production mode which stops displaying unwonted backend info.
I would recommend switching the environment to development and read the error to sort out the problem.
On a small guess, I think the namespaces conflict which will give you a HTTP 500, if you put the environment on 'development' you should be able to see this.
|
Welcome Guest, Not a member yet? Register Sign In |