diff options
| author | Andrey Listopadov <andreyorst@gmail.com> | 2022-05-19 22:06:53 +0300 |
|---|---|---|
| committer | Andrey Listopadov <andreyorst@gmail.com> | 2022-05-19 22:06:53 +0300 |
| commit | f48aa44ba3bdd669c539afb4bb2881e332b77dbe (patch) | |
| tree | 1d97a3ebdc49cdf08de509ddf330aa61f9b9ac29 /init.fnl | |
| parent | 60e091c0379950a5851d74a01a8c264c6ccbf3c2 (diff) | |
fix: avoid creating message, and erroring on non concatenated types
Diffstat (limited to 'init.fnl')
| -rw-r--r-- | init.fnl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]) |