error when no repository present could be nicer

Bug #530010 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Testrepository
Fix Released
Wishlist
Jonathan Lange

Bug Description

Running testr in a directory without a repository gives a somewhat confusing error:

[Errno 2] No such file or directory: '/home/jelmer/lp/.testrepository/format'

It would be neater to say "No repository found in /home/jelmer/lp.". Create one by running "testr init".

Related branches

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 530010] [NEW] error when no repository present could be nicer

 status triaged
 importance wishlist

I agree that the error can be made nicer. My decision to show the
'message' from errors only means its not /all that/ opaque, so I'm not
in a panic to fix it. If you wanted to that would be fine.

In terms of how to fix it, I'm a bit hesitant about prompting the user
to make one; there could be other things wrong: lets focus on clear
diagnostics:

"No repository found in '/home/jelmer/lp': [Errno 2] No such file or
directory: '/home/jelmer/lp/.testrepository/format'"

The help and tutorials all point out how to make a new repository very
early on.

Cheers,
Rob

Changed in testrepository:
importance: Undecided → Wishlist
status: New → Triaged
Jonathan Lange (jml)
Changed in testrepository:
status: Triaged → In Progress
assignee: nobody → Jonathan Lange (jml)
Changed in testrepository:
status: In Progress → Fix Released
milestone: none → next
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.