open-papyrus / papyrus-compiler

Open-source compiler for the Papyrus scripting language of Bethesda games.
https://open-papyrus.github.io/docs/papyrus-compiler/Introduction.html
MIT License
25 stars 3 forks source link

Tell the user the source file they are missing. #7

Open Osmosis-Wrench opened 2 years ago

Osmosis-Wrench commented 2 years ago

When you are missing a source file when compiling, the compiler tells you the name of the missing class, not the name of the missing file. However, the class and file name have to be the same in papyrus. Because of that, you could easily append .psc to the end of the class name and a have a error message that is a lot more helpful for new users.