Error message referencing "main"
Bug #164173 reported by
Michael D. Adams
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Released
|
Medium
|
Abdulaziz Ghuloum |
Bug Description
Calling a record-type constructor with the wrong number of arguments produces an error that makes it sound like the main program was missing args. Also was "expecting args" originally with a numeric parameter? E.g. "expecting 0 args, got 1". Without the numbers it makes it sound like you didn't get args when you were expecting some.
> (define-record-type foo)
> (make-foo 1)
Unhandled exception
Condition components:
1. &error
2. &who: record-constructor
3. &message: "main expecting args, got"
4. &irritants: (0 (1))
Changed in ikarus: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
That was an error message I inserted when debugging my records implementation. Will fix. Thanks.