Wrap Commit.fail

We want to auto-wrap Commit.fail calls, similar to how we deal with Commit.success. However,
we don't always call them with the same level of threat (sometimes it is an info and sometimes
a warning). Possibly we should, but I don't want to make actual product changes here! So, let's wrap
this function instead.