Write error to console.