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 >installed. > 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.