"Unable to branch" error message could be more informative
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I was trying to create a workspace using the following command:
$ mojo workspace-new --series trusty --stage ue/mojo-
2016-02-01 10:30:41 [INFO] Using pre-existing container class containerless
Unable to branch /home/bdmurray/
Please check the branch exists and you have permissions to access it
I seems that my spec url directory too specific and I really wanted:
~/source-
However, the error message I received from mojo was not helpful in figuring this out. It looks like cli.py logs this error message on an AttributeError and returns information about spec_url, however the error really happens in project.py where I think spec_url is concatenated with another mojo option. Subsequently, I think it'd be more helpful if the error came from project.py so the error message included the fully generated path and was more informative.
Changed in mojo: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
The message "Unable to branch /home/bdmurray/ source- trees/canonical -mojo-specs/ trunk/ue/ mojo-ue- ci-train" does seem to be the fully generate path you passed in here. Can you clarify what message you would like to have seen to make it clearer? Maybe "Please check that the branch exists, is the root of the branch and you have permissions to access it"? Or something that tells you what the root of the branch is if you specify a directory within a branch?