justinethier / husk-scheme

A full implementation of the Scheme programming language for the Haskell Platform.
http://justinethier.github.io/husk-scheme
MIT License
309 stars 28 forks source link

Unhelpful error message when not enough arguments are sent to map #193

Closed justinethier closed 9 years ago

justinethier commented 10 years ago

When map does not receive enough arguments, a cryptic error message is displayed:

huski> (map list)
Getting an unbound variable: lis1

It would be better if the error message pointed the user in the right direction. Consider how CHICKEN behaves:

#;1> (map list)
Error: too few arguments - received 1 but expected 2: #<procedure (f_10189 fn1696 lst11697 . lsts1698)>
justinethier commented 9 years ago

Fixed in the next release.