Differentiate between warnings and errors