Better error
This commit is contained in:
parent
c0fa36b75c
commit
f8c3431d12
1 changed files with 5 additions and 1 deletions
|
|
@ -24,7 +24,11 @@ heading component:
|
||||||
:title \"Title Text\"))
|
:title \"Title Text\"))
|
||||||
```"
|
```"
|
||||||
(when (= (remainder (length args) 2 1))
|
(when (= (remainder (length args) 2 1))
|
||||||
(error "Component macro expects even length args list."))
|
(error (format
|
||||||
|
"mithril:comp-> Component macro expects even length args list.
|
||||||
|
|
||||||
|
Call: (mithril:comp ~S ~S)"
|
||||||
|
view args)))
|
||||||
`(object
|
`(object
|
||||||
:view
|
:view
|
||||||
(lambda (vnode) (,@view))
|
(lambda (vnode) (,@view))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue