Throw a more instructive exception in an odd error case