[nostalgia/core/studio] Cleanup error handling for TileSheet open fail
This commit is contained in:
parent
d2b77804ff
commit
ead3fd39c4
@ -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);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user