[ https://issues.apache.org/jira/browse/CB-5782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869676#comment-13869676 ]
Mark Koudritsky commented on CB-5782: ------------------------------------- It seems to print the stack when any exception is thrown. "cordova foo" and "cordova platform add foo" run in a cordova project dir also print the scary call stack. Will look into this. > Catch exceptions and print nice error when cordova-cli run from a non cordova > project. > -------------------------------------------------------------------------------------- > > Key: CB-5782 > URL: https://issues.apache.org/jira/browse/CB-5782 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Reporter: Michal Mocny > Assignee: Mark Koudritsky > Priority: Minor > > cordova prepare prints scary stack trace when run from the wrong directory. > This is likely a common error and we should make it clear what is happening. > Seems we are already catching the case, just failing to report it gracefully: > throw new Error('Current working directory is not a Cordova-based -- This message was sent by Atlassian JIRA (v6.1.5#6160)