Add better error message when local workspace path cannot be found
When the local workspace path is specified in a playbook, in this instance:
...
content:
sources:
- url: projects/antora-direct/
branches: issue-115-clean-nav-files
start_path: docs
...
But that workspace path then turns out to be invalid, the reported error is:
apex@nova docs-site $ antora site.yml
error: unsupported URL protocol
Obviously the URL protocol isn't wrong, I just screwed up the path in this case. So, we need a better error message (Oh, no! We're lost! The source URL projects/antora-direct/
doesn't seem to exist.) and probably another test.
Here are the two problematic scenarios so far:
- Local repository path does not exist
- Currently reports:
unsupported URL protocol
- Currently reports:
- Repository path is not a git repository
- Currently reports:
Cannot read property 'getReferences' of undefined
- Currently reports:
Edited by Dan Allen