output error to console