You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vito Macchia (JIRA)" <ji...@apache.org> on 2017/12/21 09:13:00 UTC

[jira] [Created] (CB-13694) UnhandledPromiseRejectionWarning when throwing errors

Vito Macchia created CB-13694:
---------------------------------

             Summary: UnhandledPromiseRejectionWarning when throwing errors
                 Key: CB-13694
                 URL: https://issues.apache.org/jira/browse/CB-13694
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-cli
    Affects Versions: cordova@8.0.0
         Environment: Mac OS High Sierra, Node v8.9.1
            Reporter: Vito Macchia


Since updating to cordova-cli 8.0.0 (yesterday) I get UnhandledPromiseRejectionWarnings instead or error prompts with error stacks, which also make difficult to identify bugs/broken deps/missconfigurations.

Example

With cordova@7.1.0
{{cordova prepare
Error: doc.find is not a function}}

With cordova@8.0.0
{{cordova prepare
(node:2519) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: doc.find is not a function
(node:2519) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.}}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org