ruricolist / vernacular

Module system for languages that compile to Common Lisp
MIT License
59 stars 3 forks source link

IMPORT: uninformative error message when no package is found #2

Closed phoe closed 5 years ago

phoe commented 5 years ago
CL-USER> (vernacular:import install
           :from #p"~/Projects/Lisp/gateway/sql/yesql/install.sql"
           :as :cl-yesql/postmodern 
           :binding :all-as-functions 
           :export-bindings t)
The value
  NIL
is not of type
  PACKAGE
   [Condition of type TYPE-ERROR]

Restarts:
 0: [USE-VALUE] Supply a value to use instead
 1: [RETRY] Retry SLIME REPL evaluation request.
 2: [*ABORT] Return to SLIME's top level.
 3: [ABORT] abort thread (#<THREAD "repl-thread" RUNNING {100C8D9E03}>)

Backtrace:
  0: (SERAPEUM::%REQUIRE-TYPE NIL PACKAGE)
  1: (VERNACULAR/LANG::RESOLVE-LANG-PACKAGE :CL-YESQL/POSTMODERN)
  ...

The function VERNACULAR/LANG::RESOLVE-LANG-PACKAGE should signal an error with a more informative error message, possibly mentioning OVERLORD:SET-PACKAGE-BASE.