Swapped the order of the error checks. If you check the exit value
first, you never see the error message, which isn't super helpful, so I
swapeed the order of those checks.