Rewrote error returns on short cache read to be GDB-friendly