[git/errors] (GH-269) Improve error messaging on checkout

If a working directory is instructed to check out a Git reference that's
unresolvable it would previously spit out a pretty useless error
message; this commit corrects the emitted error message and adds
additional context for the error.