Splitting warning and error detection