heroku / heroku-repo

Plugin for heroku CLI that can manipulate the repo
MIT License
686 stars 111 forks source link

Incorrect error with non-existent app name #61

Closed rhys-vdw closed 6 years ago

rhys-vdw commented 7 years ago

Note typo in first command.

-> heroku repo:purge_cache --app usabilityhub_staging
(node:31848) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected token A in JSON at position 0
-> heroku repo:purge_cache --app usabilityhub-staging
Running set -e
mkdir -p tmp/repo_tmp/unpack
...
edmorley commented 6 years ago

This appears to be fixed in recent versions. eg:

$ heroku repo:purge_cache --app zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
 !    Couldn't find that app.
dmathieu commented 6 years ago

This appears to have been an upstream cli issue rather than one with this specific command.