From 3b2a449fb51f15c257dad8e87d06ca386deacdaf Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Mon, 16 Sep 2013 17:14:10 -0700 Subject: [PATCH] planetarium/mit-snapshot: Allow errors during (load-option 'GTK). Loading GTK does not signal an error when DISPLAY is not set, just a warning, so ignoring errors is no longer necessary, and hides other problems (e.g. DISPLAY is set but invalid). --- src/planetarium/mit-snapshot.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/planetarium/mit-snapshot.scm b/src/planetarium/mit-snapshot.scm index 6f06be085..0a5dcee92 100644 --- a/src/planetarium/mit-snapshot.scm +++ b/src/planetarium/mit-snapshot.scm @@ -23,8 +23,8 @@ USA. ;;;; Generate snapshots (PNG files). -;; Expect DISPLAY not set. -(ignore-errors (lambda () (load-option 'gtk))) +;; Expect warning about DISPLAY not set. +(load-option 'GTK) (with-working-directory-pathname (directory-pathname (current-load-pathname)) -- 2.25.1