Closed axelson closed 3 years ago
Done.
This is now fixed in the v0.11 branch. Nice error messages along with example code showing what to do.
Looks great! Here's the commit for any future readers: https://github.com/boydm/scenic/commit/c373212e07bd99e0c633f847781875589dfc4d54
What problem does this feature solve?
Currently if you forget to configure you assets module with a line like:
config :scenic, :assets, module: MyApp.Assets
You will get an error like:
What is your proposed solution?
Instead I think that scenic should detect this condition and raise a helpful error message.
Although perhaps there should be a default assets module that will raise if you try to actually use any assets, although i think that's only a good thing if that is always known at compile time. So I think for now always raising at compile time is the best approach.