diff options
| author | Arun Isaac | 2026-07-01 14:53:10 +0100 |
|---|---|---|
| committer | Arun Isaac | 2026-07-01 23:14:41 +0100 |
| commit | c20e1e2ad7eae6b89aed8faa450a6f611be22cda (patch) | |
| tree | a66b9dc0c3c2c7ce7190fa66ee745b00692618e5 /scripts | |
| parent | 80118f2ffd14016ec011a6f066a977080e38d740 (diff) | |
| download | ccwl-c20e1e2ad7eae6b89aed8faa450a6f611be22cda.tar.gz ccwl-c20e1e2ad7eae6b89aed8faa450a6f611be22cda.tar.lz ccwl-c20e1e2ad7eae6b89aed8faa450a6f611be22cda.zip | |
scripts: Exit with 1, not 0, on compile error.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/ccwl | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/scripts/ccwl b/scripts/ccwl index b2678ca..c1f8073 100755 --- a/scripts/ccwl +++ b/scripts/ccwl @@ -91,17 +91,18 @@ exec guile --no-auto-compile -e main -s "$0" "$@" (%compile-error #t)) (raise-exception c))) (cut ccwl-load source)))) - (unless (%compile-error) - (if (or (command? result) - (js-expression? result) - (workflow? result)) - ((case to - ((cwl) function->cwl) - ((dot) function->dot)) - result port) - (raise-exception - (formatted-message "Last expression in file ~a returns none of workflow, command or js-expression" - source))))))) + (if (%compile-error) + (exit #f) + (if (or (command? result) + (js-expression? result) + (workflow? result)) + ((case to + ((cwl) function->cwl) + ((dot) function->dot)) + result port) + (raise-exception + (formatted-message "Last expression in file ~a returns none of workflow, command or js-expression" + source))))))) (define (main args) (with-exception-handler |
