squattingmonk / nasher

A build tool for Neverwinter Nights projects
MIT License
43 stars 17 forks source link

`IndexDefect` is not handled #91

Closed tinygiant98 closed 2 years ago

tinygiant98 commented 2 years ago

When packing a module, I accidentally opted for an option what was outside the expected array bounds and ended up with a fatal error for an unhandled IndexDefect exception.

image

Will look at potential solutions if/when I can.

tinygiant98 commented 2 years ago

Adding IndexDefect handling in cli.nim resolves the issue, but not sure if it should be in addition to, or completely replace handling for ValueError

image

squattingmonk commented 2 years ago

Thanks! ValueError was only triggered if the user entered a non-int choice, so I added IndexDefect rather than replacing it.