forked from rosebudai/OpenRCT2-Web
Fixes #21632: a few crashes that can occur when loading a custom image via plugins. - Catch `std::exception` instead of `std::runtime_error` because the 300x300 check throws a [`std::invalid_argument`](https://github.com/OpenRCT2/OpenRCT2/blob/11da390704950cd30f1275c392140480908183a0/src/openrct2/drawing/ImageImporter.cpp#L34) exception and `std::exception` is the base class of both (`std::runtime_error` is not). - Replaced a few asserts with `std::runtime_error`s as well, because the test script supplied in the issue was tripping over those as well. Now instead of crashing the game or throwing an assert, they log nice readable errors to the console for plugin developers.