9ac176d5a3
Previously we were overwriting the error case with a success code further down (which is definitely not what we should be doing here).