Accessing the actual error in global-error
Unanswered
Nile Crocodile posted this in #help-forum
Nile CrocodileOP
Hi, I am wondering how to access the actual error inside a global error page. I am always getting a censored error. Help
1 Reply
global-error.js and error.js are meant for unexpected errors (i.e. bugs in your code and the app has crashed). hence the error is censored.
for expected errors (e.g. user errors), simply use conditional statements inside the page to render the error message
for expected errors (e.g. user errors), simply use conditional statements inside the page to render the error message