Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide insight when encountering `LoadError` and `NameError` during boot #224
Issue #220 discusses the new loader pattern that we'll follow in 1.0. As part of this change, we want to try and help the developer resolve boot errors caused by missing dependencies.
For example, say we have two mappers:
# app/lib/mappers/foo.rb class Foo < Bar end # app/lib/models/bar.rb class Bar < Pakyow::Mapper end
The mapper loader will attempt to load
Similarly, requiring the wrong path to
This is considered low priority for the 1.0 release, but I would like to include it if it doesn't turn into a nightmare implementation. Errors are frustrating, and we want to help the developer out if we can.