zendesk / zcli

A command-line tool for Zendesk
https://developer.zendesk.com
Apache License 2.0
62 stars 21 forks source link

Add meaningful path validation error messages #53

Open sarmadsangi opened 3 years ago

sarmadsangi commented 3 years ago

Expectations

We should get a meaningful error message when running we run commands at invalid paths.

Reality

➜  Code zcli apps:server
 ›   Error: Invalid app path: /Users/Code

Issue details

joelhellman commented 3 years ago

Agreed. In my case running zcli apps:validate in a folder without a manifest.json, produced this output:

$ zcli apps:validate
 ›   Error: Invalid app path: .