Skip to content
Advertisement

Snowflake procedure not getting caught by catch block

Why does my snowflake procedure in javascript produces an error and not getting caught by the catch block?

I have a very simple procedure created like this, instead of this going into catch and logging the error it is returning JAVASCRIPT UNCAUGHT exception.

Can someone help? Here is the code:

Advertisement

Answer

Actually, it works as expected. You have “return err;” command at the end, this is why it returns the error message. Try this one:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement