breautek commented on issue #906: URL: https://github.com/apache/cordova-lib/issues/906#issuecomment-1371144203
> Re the error issue: IIRC, CordovaError is an instance of Error, has a string message property and is nicely convertible to string (see the spec: https://github.com/apache/cordova-common/blob/b782a724f9fee6c483514ed9c23e4f20c8f9b8e6/spec/CordovaError/CordovaError.spec.js). Do you have a link to the jasmine code that throws the error? No I don't and perhaps I'm wrong about that the cause here.. What I did was a `.catch` the promise to obtain the `error` and wrapped it in a `new Error()` and threw that instead, and jasmine seemed to reported the actual error instead of the `message.split` error. This is why I assumed that giving Jasmine a `CordovaError` was the problem, but if it's an instance of `Error` then I'd expect that it would work... Perhaps we should create a new issue for this topic though. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
