Check for error so that