Make circular dep error message more meaningful

This commit is contained in:
Justin Ethier 2016-01-06 19:16:46 -05:00
parent 1c87635236
commit 33c9748a33

View file

@ -282,7 +282,7 @@
(if (= idx-my-imports idx-imports-me) (if (= idx-my-imports idx-imports-me)
idx-my-imports idx-my-imports
(+ 1 idx-my-imports))) (+ 1 idx-my-imports)))
(error "Internal error: unable to import library" lib/dep)))) (error "Unable to import library, possibly due to a circular dependency:" lib/dep))))
)) ))
libs/deps) libs/deps)
(map car result))) (map car result)))