[darcs-users] Error message improvement suggestion
David Roundy
droundy at abridgegame.org
Sat Oct 16 15:57:55 UTC 2004
On Thu, Oct 14, 2004 at 02:40:27PM +0200, Martin Schaffner wrote:
> When I give "darcs push" a bad argument, the error message
>
> Fail: <foo>/_darcs/inventory: openBinaryFile: does not exist (No such file
> or directory)
>
> is not very helpful, it requires me to know about the inner workings of
> darcs. I suggest adding a check to see if the target directory of the push
> command is a repo, similar to the check for "darcs revert" (and other
> commands), giving a similar message to what "darcs revert" gives me if I'm
> not in a repo.
Fixed. Thanks for reporting this! There actually was a check to see if it
was a valid repo, and an error message printed, except that there was a bug
in the check, so it threw an exception rather than returning false, and so
the nice error message never got printed!
--
David Roundy
http://www.abridgegame.org
More information about the darcs-users
mailing list