When an exception occurs in an HTML-enabled JADE application, the
As there is no modal support with HTML thin client applications, any code following app.msgBox in your JADE method continues to be executed.
You should therefore use app.msgBox sparingly and with care.