Subject: [cuirass] temporary network problems are fatal

From: Ricardo Wurmus <[email-masked]>
Date: Tue, 19 Jun 2018 12:25:20 +0200

Cuirass does not recover gracefully when it encounters network errors:

--8<---------------cut here---------------start------------->8---
2018-06-18T06:15:56 fatal: uncaught exception 'git-error' in 'build' fiber!
2018-06-18T06:15:56 exception arguments: (#<<git-error> code: -1 message: "failed to connect to git.savannah.gnu.org: Connection timed out" class: 2>)
In ice-9/boot-9.scm:
    829:9  5 (catch _ _ #<procedure 18e92c0 at cuirass/utils.scm:16?> ?)
   751:25  4 (dispatch-exception 0 git-error (#<<git-error> code: -?>))
In cuirass/utils.scm:
    169:8  3 (_ _ #<<git-error> code: -1 message: "failed to connect?>)
In ice-9/boot-9.scm:
    829:9  2 (catch #t #<procedure 5d8f060 at cuirass/utils.scm:169?> ?)
In cuirass/utils.scm:
   170:22  1 (_)
In unknown file:
           0 (make-stack #t)
ERROR: In procedure make-stack:
Throw to key `git-error' with args `(#<<git-error> code: -1 message: "failed to connect to git.savannah.gnu.org: Connection timed out" class: 2>)'.
--8<---------------cut here---------------end--------------->8---

It should report the error and try again later.

--
Ricardo