How to display an error in Web UI from a script ??

Hello, I have a script with conditional sentences, where in the else clause of one of them the script shows an error comment in the server.log with the help of the operation console.log.

The problem is that in the server nothing advise that an error has happened, so I'm trying to display a comment or an exception but without luck. Any idea; Thanks

0 votes

1 answers

705 views

ANSWER



Hello

If there is nothing in server.log, then check the browser console => you should have errors there.

Regards

0 votes



Nono, the error appears in server.log but I'm trying to display an error in both server.log and web.ui localhost.
11/11/2019

That's not a good idea to mix backend and frontend logging.
11/11/2019