[darcs-devel] [issue1806] better error message when just posthook fails

Eric Kow bugs at darcs.net
Fri Mar 30 17:11:50 UTC 2012


Eric Kow <kowey at darcs.net> added the comment:

Also, the error message is wrong when it says things like

change sent successfully
./my-fun-posthook: line 6: hlint: command not found
Posthook failed!
Finished applying...
Command not found:
   ["ssh","foo at example.com","darcs apply --all  --repodir 'blah'"]
Apply failed!

I don't know if this should be a separate issue.  Diagnosis:

17:56:08 - kowey: well, it's coming from Darcs.External
17:56:41 - kowey: in both cases from exit 127 from a pipeDoc
17:57:09 - kowey: so Darcs.RemoteApply uses pipeDoc
17:57:34 - kowey: pipeDocSSH repo [Ssh.remoteDarcs (remoteDarcs opts) ++" 
apply --all "++unwords (applyopts opts)+
17:58:03 - kowey: huh, but exit 127?

Ganesh also mentions there's some Linux/Windows mess scattered throughout 
relating to exit127.

Hmm, this may be sprawling a bit out of the ProbablyEasy range

----------
nosy: +mndrix -darcs-devel

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1806>
__________________________________


More information about the darcs-devel mailing list