Only output an error / warning message if there are errors or warnings