diff options
Diffstat (limited to 'module/calp/html/components.scm')
-rw-r--r-- | module/calp/html/components.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/calp/html/components.scm b/module/calp/html/components.scm index 0d6fbf1c..6642b1fe 100644 --- a/module/calp/html/components.scm +++ b/module/calp/html/components.scm @@ -58,7 +58,10 @@ allow-other-keys: rest: args) (when (and onclick href) - (error (_ "Only give one of onclick, href and submit."))) + (scm-error 'wrong-type-arg "btn" + (_ "href and onclick are mutually exclusive. href = ~s, onclick = ~s.") + (list href onclick) + #f)) (let ((body #f)) `(,(cond [href 'a] |