[nostalgia/studio] Replace Editor opening error logging with oxErrorf
This commit is contained in:
parent
21d12fee94
commit
3c44c86e91
@ -39,7 +39,10 @@ StudioUI::StudioUI(core::Context *ctx) noexcept {
|
|||||||
if (!err) {
|
if (!err) {
|
||||||
oxIgnoreError(openProject(config.projectPath));
|
oxIgnoreError(openProject(config.projectPath));
|
||||||
for (const auto &f : config.openFiles) {
|
for (const auto &f : config.openFiles) {
|
||||||
oxLogError(openFile(f));
|
auto err = openFile(f);
|
||||||
|
if (err) {
|
||||||
|
oxErrorf("Could not open editor: {}\n", err.msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (err.msg) {
|
if (err.msg) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user