aboutsummaryrefslogtreecommitdiff
path: root/ccwl
diff options
context:
space:
mode:
authorArun Isaac2023-10-17 19:19:05 +0100
committerArun Isaac2023-10-17 19:20:19 +0100
commit270f7bab16308ec9a5c2e6ee4abbdb4639ef2d9f (patch)
treee0eb28820a8046e14a31108e1397b488bf1fde70 /ccwl
parent2853ef38886e3ffd7f12252ab17fb2d4e29614e2 (diff)
downloadccwl-270f7bab16308ec9a5c2e6ee4abbdb4639ef2d9f.tar.gz
ccwl-270f7bab16308ec9a5c2e6ee4abbdb4639ef2d9f.tar.lz
ccwl-270f7bab16308ec9a5c2e6ee4abbdb4639ef2d9f.zip
ccwl: Add "Invalid parameter" to #:stderr and #:stdout error messages.
* ccwl/ccwl.scm (command): Add "Invalid parameter" to #:stderr and #:stdout error messages. * tests/ccwl.scm ("commands with non-string #:stderr parameters must raise a &ccwl-violation condition", "commands with non-string #:stdout parameters must raise a &ccwl-violation condition"): Adjust tests.
Diffstat (limited to 'ccwl')
-rw-r--r--ccwl/ccwl.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/ccwl/ccwl.scm b/ccwl/ccwl.scm
index 98bc8ae..ca02cea 100644
--- a/ccwl/ccwl.scm
+++ b/ccwl/ccwl.scm
@@ -383,13 +383,15 @@ identifiers defined in the commands."
(not (string? (syntax->datum stderr))))
(raise-exception
(condition (ccwl-violation stderr)
- (formatted-message "#:stderr parameter must be a string")))
+ (formatted-message "Invalid #:stderr parameter ~a. #:stderr parameter must be a string"
+ (syntax->datum stderr))))
stderr)
#,(if (and stdout
(not (string? (syntax->datum stdout))))
(raise-exception
(condition (ccwl-violation stdout)
- (formatted-message "#:stdout parameter must be a string")))
+ (formatted-message "Invalid #:stdout parameter ~a. #:stdout parameter must be a string"
+ (syntax->datum stdout))))
stdout)
#,requirements
#,other))