cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Soref <>
Subject Re: Not printing stacktrace
Date Thu, 22 May 2014 17:18:36 GMT
Archana Naik wrote:
> Is there anyway to not print the stack trace incase of error?
> I mean selectively choosing to show or not.
> Amazon-fireos create script throws error if AmazonWebView SDK is not
> But it also prints usual long stack trace.
> I would like to only print the error and not show the stack trace.

In short: if you do not want a stack trace, do catch the Exception and
throw a new CordovaError(<what-you-want-the-user-to-see>)
If you don't, your exception will be rendered with a stack trace.

View raw message