Warn and exit if a recipe doesn't exist #28

Closed
wants to merge 1 commit into
from

Projects

None yet

1 participant

Contributor
jbabe commented Feb 6, 2014
  • If a recipe can't be fetched, fail with
    a warning
  • Currently it fails (exit value of 8) without
    a warning, making it hard to find the issue
@jbabe jbabe Warn and exit if a recipe doesn't exist
* If a recipe can't be fetched, fail with
a warning
* Currently it fails (exit value of 8) without
a warning, making it hard to find the issue
4b9455d
Contributor
jbabe commented Feb 6, 2014

This turns:

13:52 /usr/local/src/foo$ bin/plow foo.sh sudo
Assuming staging environment...
== Processing recipes 
13:52 /usr/local/src/foo$ echo $?
8

Into:

13:56 /usr/local/src/foo$ bin/plow foo.sh sudo
Assuming staging environment...
== Processing recipes 
  failed: https://raw.github.com/mm53bar/plow/master/bin/whoamidasdfdsaf recipe does not exist.
13:56 /usr/local/src/foo$ echo $?
1
@jbabe jbabe closed this Dec 5, 2016
@jbabe jbabe deleted the unknown repository branch Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment