Handle errors from check() correctly