carefully reads and returns an error object's message, if there is one