#1098: Correctly setting error level