From 3c44c86e916219392978da3b4ef1e406c8cfd556 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 17 Feb 2022 04:27:04 -0600 Subject: [PATCH] [nostalgia/studio] Replace Editor opening error logging with oxErrorf --- src/nostalgia/studio/studioapp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/studio/studioapp.cpp b/src/nostalgia/studio/studioapp.cpp index 7ea080d6..7a46614f 100644 --- a/src/nostalgia/studio/studioapp.cpp +++ b/src/nostalgia/studio/studioapp.cpp @@ -39,7 +39,10 @@ StudioUI::StudioUI(core::Context *ctx) noexcept { if (!err) { oxIgnoreError(openProject(config.projectPath)); for (const auto &f : config.openFiles) { - oxLogError(openFile(f)); + auto err = openFile(f); + if (err) { + oxErrorf("Could not open editor: {}\n", err.msg); + } } } else { if (err.msg) {