summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts2
-rw-r--r--gui/src/shared/gettext.ts5
2 files changed, 4 insertions, 3 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 67bb326465..a934f11121 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -888,7 +888,7 @@ class ApplicationMain {
execFile(executable, args, { windowsHide: true }, (error, stdout, stderr) => {
if (error) {
log.error(
- `Failed to collect a problem report: ${error.message}
+ `Failed to collect a problem report.
Stdout: ${stdout.toString()}
Stderr: ${stderr.toString()}`,
);
diff --git a/gui/src/shared/gettext.ts b/gui/src/shared/gettext.ts
index c8cc97969c..d7cd0f8b23 100644
--- a/gui/src/shared/gettext.ts
+++ b/gui/src/shared/gettext.ts
@@ -64,8 +64,9 @@ function setErrorHandler(catalogue: Gettext) {
// NOTE: locale is not publicly exposed
const catalogueLocale = (catalogue as any).locale;
- // Filter out the "no translation was found" errors for the source language
- if (catalogueLocale === SOURCE_LANGUAGE && error.indexOf('No translation was found') !== -1) {
+ // Filter out the "no translation was found" errors for the source language.
+ // The catalogue's locale is set to an empty string when using the source translation.
+ if (catalogueLocale === '' && error.indexOf('No translation was found') !== -1) {
return;
}