Hello community, Does any of you know how to disa...
# docker
g
Hello community, Does any of you know how to disable the
Fail Whale
and show the error instead ?
q
hi! several options
g
please provide one
q
i assume you want to get rid of it for good in your dev environment
g
yes please
q
in
config/Shared/config_default-docker.dev.php
you see
Copy code
$config[ErrorHandlerConstants::ERROR_RENDERER] = getenv('SPRYKER_DEBUG_ENABLED') ? WebExceptionErrorRenderer::class : WebHtmlErrorRenderer::class;
you can override it there or in you config_local.php to be
Copy code
$config[ErrorHandlerConstants::ERROR_RENDERER] = WebExceptionErrorRenderer::class;
that is the hardcoded way
if you run your whole environment with
-x
it should do the same, but has the debugger permanently running, which slows things down
g
thank you
q
let us know if it worked as advertised! 🙂 👍
g
I have added in config_local the following line:
Copy code
// ---------- Fail Whale
$config[ErrorHandlerConstants::DISPLAY_ERRORS] = true;
$config[ErrorHandlerConstants::ERROR_RENDERER] = WebExceptionErrorRenderer::class;
and now I can see the errors
q
perfect! 👍
keep in mind: this file is by default ignored by git, so you will not automatically push you changes, in case you intended to share this within your team
g
thank you for the reminder