Why does this return success on an error?