Skip to content

Commit 5eb2916

Browse files
committed
Provide actionable error message in case uploadEnabled is undefined
1 parent 555fa0c commit 5eb2916

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

glean/src/core/context.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export class Context {
7979
LOG_TAG,
8080
[
8181
"Attempted to access Context.uploadEnabled before it was set. This may cause unexpected behaviour.",
82+
"Please double check if a boolean value was passed to `Glean.setUploadEnabled`",
83+
"or to the `uploadEnabled` value on `Glean.initialize`."
8284
],
8385
LoggingLevel.Error
8486
);

0 commit comments

Comments
 (0)