added GIT_EINVALIDSPEC as error code and use error msg for expected failures
fix error message text