Skip to content

Commit

Permalink
Add error advise when forgetting to import a language.
Browse files Browse the repository at this point in the history
Closes #1001.
  • Loading branch information
ashinn committed Sep 20, 2024
1 parent d677a13 commit 702e881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/chibi/repl.scm
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@
(pair? (exception-irritants exn)))
(let ((name (car (exception-irritants exn))))
(cond
((and (identifier? name) (not (env-parent (current-environment))))
(display "Did you forget to import a language? e.g. (import (scheme base))\n" out))
((identifier? name)
(display "Searching for modules exporting " out)
(display name out)
Expand Down

0 comments on commit 702e881

Please sign in to comment.