Log error to console