summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2022-05-19 22:06:53 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2022-05-19 22:06:53 +0300
commitf48aa44ba3bdd669c539afb4bb2881e332b77dbe (patch)
tree1d97a3ebdc49cdf08de509ddf330aa61f9b9ac29
parent60e091c0379950a5851d74a01a8c264c6ccbf3c2 (diff)
fix: avoid creating message, and erroring on non concatenated types
-rw-r--r--init.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.fnl b/init.fnl
index 0ef4e48..a230450 100644
--- a/init.fnl
+++ b/init.fnl
@@ -1052,8 +1052,8 @@ use."
(doto tbl (tset k v))
{:cljlib/type :table}))
([tbl k v & kvs]
- (assert (= (% (length kvs) 2) 0)
- (.. "no value supplied for key " (. kvs (length kvs))))
+ (when (not= (% (length kvs) 2) 0)
+ (.. "no value supplied for key " (tostring (. kvs (length kvs)))))
(assert (not (nil? k)) "attempt to use nil as key")
(tset tbl k v)
(var [k v] [nil nil])