From 580900b0f4c295d8fc1633464a17a9de70747a77 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 29 Sep 2019 10:45:46 +0100 Subject: [PATCH] Fail early if the inferior is #f This happens when the repl can't be loaded for example. --- guix-data-service/jobs/load-new-guix-revision.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guix-data-service/jobs/load-new-guix-revision.scm b/guix-data-service/jobs/load-new-guix-revision.scm index 0046cb4..11db7ca 100644 --- a/guix-data-service/jobs/load-new-guix-revision.scm +++ b/guix-data-service/jobs/load-new-guix-revision.scm @@ -773,6 +773,9 @@ WHERE job_id = $1" (open-inferior store-path)))))) (setenv "GUIX_LOCPATH" guix-locpath) ; restore GUIX_LOCPATH + (when (eq? inf #f) + (error "error: inferior is #f")) + ;; Normalise the locale for the inferior process (catch 'system-error