mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 00:07:36 +02:00
Issue #240 - Clean up error message
This commit is contained in:
parent
62c929e529
commit
67baf4d5ee
1 changed files with 3 additions and 3 deletions
|
@ -2434,14 +2434,14 @@
|
|||
(argc (- (length ast) 1)) )
|
||||
(when (not (= argc expected-argc))
|
||||
(compiler-msg "Compiler Error: ")
|
||||
(compiler-msg ast)
|
||||
(compiler-msg (cons (car ast) (cddr ast)))
|
||||
(compiler-error
|
||||
"Expected "
|
||||
(number->string expected-argc)
|
||||
(number->string (- expected-argc 1)) ;; One less for continuation
|
||||
" arguments to "
|
||||
(symbol->string (car ast))
|
||||
" but received "
|
||||
(number->string argc))) ))
|
||||
(number->string (- argc 1)))) )) ;; One less for cont
|
||||
|
||||
;; Declare a compiler error and quit
|
||||
;; Preferable to (error) since a stack trace is meaningless here.
|
||||
|
|
Loading…
Add table
Reference in a new issue