You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Brooks (JIRA)" <ji...@apache.org> on 2013/03/20 22:11:15 UTC
[jira] [Resolved] (CB-2733) Consistently Throw an Error Object
[ https://issues.apache.org/jira/browse/CB-2733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Brooks resolved CB-2733.
--------------------------------
Resolution: Fixed
> Consistently Throw an Error Object
> ----------------------------------
>
> Key: CB-2733
> URL: https://issues.apache.org/jira/browse/CB-2733
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.5.0
> Reporter: Michael Brooks
> Assignee: Michael Brooks
> Priority: Minor
>
> Currently, the Cordova CLI will throw an {{Error}} or {{String}} on an error.
> In order to make it easier to handle errors, the Cordova CLI should consistently throw an {{Error}} object. This allows the caller to catch the error and output {{e.message}} without inspecting the type of the thrown object.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira