latticexyz / mud

MUD is a framework for building autonomous worlds
https://mud.dev
MIT License
692 stars 174 forks source link

improve error when system name != filename #2919

Open holic opened 2 days ago

holic commented 2 days ago

a file like SomeSystem.sol with a definition like contract app__SomeSystem is System will error in mud build with

[MUDError]: Contract not found: SomeSystem

we should improve that error to something like

Expected contract SomeSystem to exist in SomeSystem.sol but only found ...