more robust error messages for failure cases to reach endpoints

S-48826
Display a message when there are no commits.

S-48826