Skip to content

Commit d557312

Browse files
committed
Use console.warn for warnings.
1 parent bb8f701 commit d557312

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

addons/middle-click-popup/WorkspaceQuerier.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ class TokenTypeBlock extends TokenType {
753753
enumerateStringForms();
754754

755755
if (this.stringForms.length >= WorkspaceQuerier.MAX_STRING_FORMS) {
756-
console.log(
756+
console.warn(
757757
"Warning: Block '" + this.block.id + "' has too many string forms. Search results may not be very good."
758758
);
759759
this.stringForms.length = 0;
@@ -1222,12 +1222,12 @@ export default class WorkspaceQuerier {
12221222
}
12231223
++query.resultCount;
12241224
if (!limited && query.resultCount >= WorkspaceQuerier.MAX_RESULTS) {
1225-
console.log("Warning: Workspace query exceeded maximum result count.");
1225+
console.warn("Warning: Workspace query exceeded maximum result count.");
12261226
limited = true;
12271227
}
12281228

12291229
if (!query.canCreateMoreTokens()) {
1230-
console.log("Warning: Workspace query exceeded maximum token count.");
1230+
console.warn("Warning: Workspace query exceeded maximum token count.");
12311231
limited = true;
12321232
break;
12331233
}

0 commit comments

Comments
 (0)