[darcs-devel] [issue589] buggy error message: Impossible case in darcs PatchRead.lhs or Patch/Read.lhs

Michael Abbott michael at araneidae.co.uk
Fri Jan 25 09:54:01 UTC 2008


On Fri, 25 Jan 2008, Mark Stosberg wrote:
> If this is just a string change to create a better error message, perhaps this
> issue could be resolved sooner?
>
> I still don't understand the issue well enough to even suggest what a better
> error message might be.

If we're just talking about improving the error message, then can I 
suggest something along the lines of:

 	Patch blah blah corrupted: unable to apply

where the blah blah bit gives the proper filename of the patch.  Then at 
least I can hunt it out and look inside it to see -- aha! my damned proxy 
again.

The current error message says (1) panic panic darcs is broken and (2) 
just identifies the patch by number.  The problem with this is that 
finding the patch file requires a little guesswork and the lucky fact that 
`ls` lists the patches in the same order as darcs was reading them.


More information about the darcs-devel mailing list