Log an error instead of printing a trace