better error logging for obstruse error msgs