Skip to content

Commit 8175c10

Browse files
author
Beatriz Rizental
authored
Merge pull request mozilla#670 from mozilla/dependabot/npm_and_yarn/glean/typescript-4.4.2
Bump typescript from 4.3.5 to 4.4.2 in /glean
2 parents 4261452 + 57e56ca commit 8175c10

File tree

8 files changed

+21
-14
lines changed

8 files changed

+21
-14
lines changed

glean/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glean/src/cli.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,14 @@ async function run(args: string[]) {
236236
try {
237237
await setup(projectRoot);
238238
} catch (err) {
239-
log(LOG_TAG, ["Failed to setup the Glean build environment.\n", err], LoggingLevel.Error);
239+
log(
240+
LOG_TAG,
241+
[
242+
"Failed to setup the Glean build environment.\n",
243+
JSON.stringify(err)
244+
],
245+
LoggingLevel.Error
246+
);
240247
process.exit(1);
241248
}
242249

glean/src/core/dispatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Dispatcher {
103103
try {
104104
await task();
105105
} catch(e) {
106-
log(this.logTag, ["Error executing task:", e], LoggingLevel.Error);
106+
log(this.logTag, ["Error executing task:", JSON.stringify(e)], LoggingLevel.Error);
107107
}
108108
}
109109

glean/src/core/pings/maker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export async function collectAndStorePing(identifier: string, ping: CommonPingDa
272272
`Error while attempting to modify ping payload for the "${ping.name}" ping using`,
273273
`the ${JSON.stringify(CoreEvents.afterPingCollection.registeredPluginIdentifier)} plugin.`,
274274
"Ping will not be submitted. See more logs below.\n\n",
275-
e
275+
JSON.stringify(e)
276276
],
277277
LoggingLevel.Error
278278
);

glean/src/core/storage/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function updateNestedObject(
8585
} catch(e) {
8686
log(
8787
LOG_TAG,
88-
["Error while transforming stored value. Ignoring old value.", e],
88+
["Error while transforming stored value. Ignoring old value.", JSON.stringify(e)],
8989
LoggingLevel.Error
9090
);
9191
target[finalKey] = transformFn(undefined);

glean/src/platform/qt/storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class QMLStore implements Store {
129129
} catch(e) {
130130
log(
131131
LOG_TAG,
132-
["Error while attempting to access LocalStorage.\n", e],
132+
["Error while attempting to access LocalStorage.\n", JSON.stringify(e)],
133133
LoggingLevel.Debug
134134
);
135135
} finally {
@@ -152,7 +152,7 @@ class QMLStore implements Store {
152152
} catch (e) {
153153
log(
154154
LOG_TAG,
155-
[`Error executing LocalStorage query: ${query}.\n`, e],
155+
[`Error executing LocalStorage query: ${query}.\n`, JSON.stringify(e)],
156156
LoggingLevel.Debug
157157
);
158158
reject();

glean/src/platform/webext/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class WebExtStore implements Store {
153153
);
154154
return this.store.set(query);
155155
} catch(e) {
156-
log(LOG_TAG, ["Ignoring key", e], LoggingLevel.Warn);
156+
log(LOG_TAG, ["Ignoring key", JSON.stringify(e)], LoggingLevel.Warn);
157157
}
158158
}
159159
}

glean/src/platform/webext/uploader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class BrowserUploader extends Uploader {
3939
// We will treat this as we treat server / network errors in this case.
4040
log(LOG_TAG, ["Network error while attempting to upload ping.\n", e.message], LoggingLevel.Error);
4141
} else {
42-
log(LOG_TAG, ["Unknown error while attempting to upload ping.\n", e], LoggingLevel.Error);
42+
log(LOG_TAG, ["Unknown error while attempting to upload ping.\n", JSON.stringify(e)], LoggingLevel.Error);
4343
}
4444

4545
clearTimeout(timeout);

0 commit comments

Comments
 (0)