verifying the error