Revert "ErrorCheck no longer checks for warnings."

This reverts commit 67aa4a3384dcbfd9b12f994ffc48e40ea37ffed7.