log errors to console