[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/10: Specify an invalid parameter message in parse-datetime
From: |
Christopher Baines |
Subject: |
03/10: Specify an invalid parameter message in parse-datetime |
Date: |
Sat, 21 Nov 2020 16:11:43 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 8cafd93f223dbfa3ab5f020cc9016fc01bb1dde1
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Nov 21 18:31:59 2020 +0000
Specify an invalid parameter message in parse-datetime
---
guix-data-service/web/query-parameters.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/guix-data-service/web/query-parameters.scm
b/guix-data-service/web/query-parameters.scm
index 3b0953a..2212ef1 100644
--- a/guix-data-service/web/query-parameters.scm
+++ b/guix-data-service/web/query-parameters.scm
@@ -214,7 +214,9 @@
(lambda ()
(string->date s "~Y-~m-~d ~H:~M:~S"))
(lambda (key . args)
- (make-invalid-query-parameter s #f))))
+ (make-invalid-query-parameter
+ s
+ "Unable to parse date, please use YYYY-MM-DD HH-MM-SS as the
format."))))
(define (parse-checkbox-value s)
(string=? s "on"))
- branch master updated (3e15900 -> e93da1a), Christopher Baines, 2020/11/21
- 01/10: Avoid crashing when no compare arguments are provided, Christopher Baines, 2020/11/21
- 04/10: Improve the comparison page interface, Christopher Baines, 2020/11/21
- 02/10: Avoid errors in form-horizontal-control, Christopher Baines, 2020/11/21
- 03/10: Specify an invalid parameter message in parse-datetime,
Christopher Baines <=
- 05/10: Add default datetimes for compare-by-datetime, Christopher Baines, 2020/11/21
- 06/10: Fix some links on the compare page, Christopher Baines, 2020/11/21
- 09/10: Consolidate the package derivation comparison code, Christopher Baines, 2020/11/21
- 08/10: Start merging the package derivation comparison code, Christopher Baines, 2020/11/21
- 07/10: Extract out the compare form controls, Christopher Baines, 2020/11/21
- 10/10: Fix the JSON link on the compare package derivations page, Christopher Baines, 2020/11/21