make it log a useful error