We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18cd225 commit 8d9b040Copy full SHA for 8d9b040
1 file changed
src/practitest_firecracker/query_dsl.cljc
@@ -81,7 +81,9 @@
81
(take 1 (drop (- (parse-int (first args)) 1) (last args)))
82
(return-error "Syntax error: 'get' must have two arguments" query))
83
'trim (if (= 1 (count args))
84
- (string/trim (first args))
+ (if (string? (first args))
85
+ (string/trim (first args))
86
+ (return-error "Syntax error: 'trim' should be applied on a string" query))
87
(return-error "Syntax error: 'trim' must have only one argument" query))
88
(return-error #?(:clj (format "Syntax error: unsupported function '%s'" op)
89
:cljs (str "Syntax error: unsupported function: " op)) query)))
0 commit comments