return warnings back to errors