mirror of
https://github.com/janet-lang/janet
synced 2025-01-11 08:00:27 +00:00
Print message if no hook found, but looked for
This commit is contained in:
parent
3c8346f24e
commit
980981c9ee
@ -4046,7 +4046,9 @@
|
||||
(defn- do-hook
|
||||
[module bundle-name hook & args]
|
||||
(def hookf (module/value module (symbol hook)))
|
||||
(unless hookf (break))
|
||||
(unless hookf
|
||||
(print "no hook " hook " found for bundle " bundle-name)
|
||||
(break))
|
||||
(def manifest (bundle/manifest bundle-name))
|
||||
(def dir (os/cwd))
|
||||
(os/cd (get manifest :local-source "."))
|
||||
|
Loading…
Reference in New Issue
Block a user