What if the error message is not "Record not found"? That's what the `errorMessage` variable is for.