Show readable editor startup errors in native dialogs (by Codex)
This commit is contained in:
1 parent
500354cc39
commit
a7aa1d3713
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user