You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
With commit f740c40 , a generic rescue block is wrapped around the Kernel.require line which loads your libraries. This block only outputs warning and debug text to Bundler.ui, which is NOT VISIBLE by default.
So, if the file being required throws any error inheriting from StandardError (most errors), the error is by default silently ignored and the file isn't loaded. This gives you confusing, unrelated errors that tell you nothing about the actual problem.
My suggestion is to either remove the generic rescue, or at least re-raise the error. Let me know the preferred fix and I can implement.
Thanks!
The text was updated successfully, but these errors were encountered:
Example project, explanation of problem, expected/actual result, and steps to reproduce can be found here: https://github.com/bricker/bundler_require_fail
With commit f740c40 , a generic
rescue
block is wrapped around theKernel.require
line which loads your libraries. This block only outputs warning and debug text toBundler.ui
, which is NOT VISIBLE by default.So, if the file being required throws any error inheriting from
StandardError
(most errors), the error is by default silently ignored and the file isn't loaded. This gives you confusing, unrelated errors that tell you nothing about the actual problem.My suggestion is to either remove the generic
rescue
, or at least re-raise the error. Let me know the preferred fix and I can implement.Thanks!
The text was updated successfully, but these errors were encountered: