Slightly better error check
This commit is contained in:
parent
7e463fceea
commit
147b56f051
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ heading component:
|
|||
(h1 ~vnode.state.title))
|
||||
:title \"Title Text\"))
|
||||
```"
|
||||
(when (= (remainder (length args) 2 1))
|
||||
(when (and (not (null? args))
|
||||
(= (remainder (length args) 2 1)))
|
||||
(error (format
|
||||
"mithril:comp-> Component macro expects even length args list.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue