Fail early if the inferior is #f
This happens when the repl can't be loaded for example.
This commit is contained in:
parent
208122317a
commit
580900b0f4
1 changed files with 3 additions and 0 deletions
|
|
@ -773,6 +773,9 @@ WHERE job_id = $1"
|
||||||
(open-inferior store-path))))))
|
(open-inferior store-path))))))
|
||||||
(setenv "GUIX_LOCPATH" guix-locpath) ; restore GUIX_LOCPATH
|
(setenv "GUIX_LOCPATH" guix-locpath) ; restore GUIX_LOCPATH
|
||||||
|
|
||||||
|
(when (eq? inf #f)
|
||||||
|
(error "error: inferior is #f"))
|
||||||
|
|
||||||
;; Normalise the locale for the inferior process
|
;; Normalise the locale for the inferior process
|
||||||
(catch
|
(catch
|
||||||
'system-error
|
'system-error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue