[darcs-users] [patch386] Improve error message when _darcs/inventory fallback c...

Simon Michael simon at joyful.com
Tue Sep 14 21:37:20 UTC 2010


On 9/9/10 12:59 PM, Eric Kow wrote:
> Thu Sep  9 20:42:55 BST 2010  Eric Kow<kowey at darcs.net>
>    * Improve error message when _darcs/inventory fallback check fails.
...
> -                    Left e -> return $ Left $ "Not a repository: "++repo++" ("++e++")"
> +                    Left e -> return . Left . unlines $
> +                                [ "Not a repository: "++repo++" ("++e++")"
> +                                , ""
> +                                , "Note: I was expecting to find a _darcs/inventory file because I could"
> +                                , "not find (or read) _darcs/format and assumed that the remote repository"
> +                                , "is old-fashioned."
> +                                ]

+1, this is a clear improvement for someone trying to figure out their darcs trouble, and seems harmless and cheap.



More information about the darcs-users mailing list