BattletechModders / BattleTechModLoader

A simple mod loader and injector for HBS's PC game BattleTech.
The Unlicense
48 stars 10 forks source link

handled exception using example in other parts of code #26

Closed gnivler closed 5 years ago

gnivler commented 6 years ago

Hope it's good

janxious commented 6 years ago

When does this exception occur and why it an addition try block necessary? Just to get a custom error message?

gnivler commented 6 years ago

This occurs when I use /restore, and the .orig file is not there. Edge case really like when I deleted the file 👎

The try/catch is was really only intended to handle the unhandled e, doesn't add much value otherwise. I think?

janxious commented 6 years ago

If you open something similar on the fork I will probably merge it

gnivler commented 6 years ago

Ok sounds good thanks. Will do it today.