atomist-attic/rug-rugs

Fail when prerequisites not met

ddgenome opened this issue · 3 comments

As @kipz pointed out, when you run an editor whose prerequisites are not met, a console.log is output, but this is lost in the bot. We think the editor should fail in this case. Current thinking is that the best way to fail in this case is to throw an exception.

This is a bit complicated. Changing the behavior to throwing an exception results in the scenario being aborted. There is currently no way to capture this behavior and test for it in the BDD framework.

Should be possible once atomist-attic/rug#571 is merged and released.