Make the error human-readable

this is like the best thing I've seen in C++