Log errors to console.