Check some error conditions