1
0
mirror of https://github.com/janet-lang/janet synced 2024-10-03 01:00:40 +00:00

Print message if no hook found, but looked for

This commit is contained in:
Calvin Rose 2024-05-15 07:30:29 -05:00
parent 3c8346f24e
commit 980981c9ee

View File

@ -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 "."))