From 852f76758daeaf67a988ecbb8daa17310d053010 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 20 Jun 2026 11:06:23 +0100 Subject: scripts: Report non-existent source files gracefully. --- scripts/ccwl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ccwl b/scripts/ccwl index 3f8ab9b..cc7728f 100755 --- a/scripts/ccwl +++ b/scripts/ccwl @@ -73,6 +73,10 @@ exec guile --no-auto-compile -e main -s "$0" "$@" ;; our purposes. Besides, compiling would fail since the workflow ;; macro cannot access command definitions. (set! %load-should-auto-compile #f) + (unless (file-exists? source) + (raise-exception + (formatted-message "File ~a does not exist" + source))) ((case to ((cwl) function->cwl) ((dot) function->dot)) -- cgit 1.4.1