Return immediately after error is found