Check for errors before require_once