output errors to console