From f8c3431d128edbaf6cfbc15d917dba9b25f0d877 Mon Sep 17 00:00:00 2001 From: Jakub Date: Sun, 12 Jul 2026 12:21:14 +0800 Subject: [PATCH] Better error --- mithril.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mithril.scm b/mithril.scm index dab7617..c5b47c6 100644 --- a/mithril.scm +++ b/mithril.scm @@ -24,7 +24,11 @@ heading component: :title \"Title Text\")) ```" (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 :view (lambda (vnode) (,@view))