Open atombaby opened 8 years ago
This is trickier than it looks- we want the recipe to fail when a condition succeeds (i.e. when knife supermarket show cookbook version
returns 0) which is not a readily apparent capability. It is possible to reverse the exit of the shell command (command && exit 1 || exit 0) but the error messages are no better.
As it stands, the recipe functions as necessary- if there's a duplicate version, the converge fails. This kind of guard would hopefully provide a cleaner message for upstream consumption, but as it stands, the message is in there and available for diagnosis
Currently a duplicate version causes ugly failures- clean these up and provide a sensible error for upstream consumption
Current messages: