[nostalgia/core/studio] Cleanup error handling for TileSheet open fail

This commit is contained in:
Gary Talent 2023-08-09 00:00:42 -05:00
parent d2b77804ff
commit ead3fd39c4

View File

@ -17,11 +17,7 @@ class StudioModule: public studio::Module {
{
{FileExt_ng},
[ctx](ox::CRStringView path) -> ox::Result<studio::BaseEditor*> {
try {
return ox::make<TileSheetEditorImGui>(ctx, path);
} catch (const ox::Exception &ex) {
return ex.toError();
}
return ox::makeCatch<TileSheetEditorImGui>(ctx, path);
}
},
{