From a7aa1d37132a7faf7b0cef97658783e872991286 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 23 Oct 2026 09:08:26 +0200 Subject: [PATCH] Show readable editor startup errors in native dialogs (by Codex) --- src/editor/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/editor/main.cpp b/src/editor/main.cpp index 36c31e2..b5f5f11 100644 --- a/src/editor/main.cpp +++ b/src/editor/main.cpp @@ -163,7 +163,9 @@ int main(int argc, char **argv) { } catch (const Error &e) { const auto message = Json{{"error", e.code}, {"message", tr(language, e.code)}, {"details", e.details}}.dump(); - bmh::rml::report_start_error("OpenBMHEditor", message, graphical); + std::cerr << message << '\n'; + if (graphical) + bmh::rml::report_start_error("OpenBMHEditor", tr(language, e.code)); return 1; } catch (const std::exception &e) { bmh::rml::report_start_error("OpenBMHEditor", tr(language, "error") + ": " + e.what(), graphical);