will log an error message