Skip to content

Commit 8d9b040

Browse files
committed
debug
1 parent 18cd225 commit 8d9b040

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/practitest_firecracker/query_dsl.cljc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181
(take 1 (drop (- (parse-int (first args)) 1) (last args)))
8282
(return-error "Syntax error: 'get' must have two arguments" query))
8383
'trim (if (= 1 (count args))
84-
(string/trim (first args))
84+
(if (string? (first args))
85+
(string/trim (first args))
86+
(return-error "Syntax error: 'trim' should be applied on a string" query))
8587
(return-error "Syntax error: 'trim' must have only one argument" query))
8688
(return-error #?(:clj (format "Syntax error: unsupported function '%s'" op)
8789
:cljs (str "Syntax error: unsupported function: " op)) query)))

0 commit comments

Comments
 (0)