aboutsummaryrefslogtreecommitdiff
path: root/module/datetime.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-08-24 19:19:58 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2021-08-24 19:19:58 +0200
commita1f66a531be8c89974f1959432e733d3434fbf01 (patch)
tree0692e38837daa04d717addce60a058d959e96f6c /module/datetime.scm
parentSlightly improve error handling in test-runner. (diff)
downloadcalp-a1f66a531be8c89974f1959432e733d3434fbf01.tar.gz
calp-a1f66a531be8c89974f1959432e733d3434fbf01.tar.xz
Fix warning calls in string->datetime.
Diffstat (limited to 'module/datetime.scm')
-rw-r--r--module/datetime.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/datetime.scm b/module/datetime.scm
index 9abd1307..c1fae3ce 100644
--- a/module/datetime.scm
+++ b/module/datetime.scm
@@ -648,10 +648,13 @@
[else dt]))
(cond [(null? str)
- ;; (warning "Premature end of string")
+ ;; ((@ (calp util exceptions) warning)
+ ;; "Premature end of string, still got fmt = ~s"
+ ;; fmt)
dt]
[(null? fmt)
- ;; (warning "Unsparsed characters at end of string")
+ ;; ((@ (calp util exceptions) warning)
+ ;; "Unsparsed characters at end of string")
dt]
[(eq? #\~ (car fmt))
(case (cadr fmt)