Explicitly set error before jumping to fail.