aboutsummaryrefslogtreecommitdiff
path: root/ccwl/ccwl.scm
diff options
context:
space:
mode:
authorArun Isaac2023-10-14 00:30:04 +0100
committerArun Isaac2023-10-14 00:30:04 +0100
commita310aa43c3907fae62156be5478a3dacbb4e92f8 (patch)
treeffd7055df63a4ceafe91b9d39d7ca4e8b01e5551 /ccwl/ccwl.scm
parent8465cbf1923e6e8e7dde682eb06875970762b649 (diff)
downloadccwl-a310aa43c3907fae62156be5478a3dacbb4e92f8.tar.gz
ccwl-a310aa43c3907fae62156be5478a3dacbb4e92f8.tar.lz
ccwl-a310aa43c3907fae62156be5478a3dacbb4e92f8.zip
ccwl: Raise &ccwl-violation when workflow syntax is not recognized.
* ccwl/ccwl.scm (workflow): Raise &ccwl-violation when workflow syntax is not recognized. * tests/ccwl.scm ("unrecognized workflow syntaxes must raise a &ccwl-violation condition"): New test.
Diffstat (limited to 'ccwl/ccwl.scm')
-rw-r--r--ccwl/ccwl.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/ccwl/ccwl.scm b/ccwl/ccwl.scm
index 5a6aaed..d9d9c78 100644
--- a/ccwl/ccwl.scm
+++ b/ccwl/ccwl.scm
@@ -615,5 +615,7 @@ a <key> object, in STEPS, a list of <step> objects. If no such
(list #,@(filter-map (cut key->output <> steps)
output-keys))
'())))
- (x (error "Unrecognized workflow syntax [expected (workflow (input ...) tree)]:"
- (syntax->datum #'x))))))
+ (x
+ (raise-exception
+ (condition (ccwl-violation #'x)
+ (formatted-message "Unrecognized workflow syntax [expected (workflow (input ...) tree)]")))))))