log errors to console.error