Skip to content

Commit

Permalink
chore - write error message so that it doesn't get confused as file p…
Browse files Browse the repository at this point in the history
…ath (#213210)
  • Loading branch information
jrieken authored May 22, 2024
1 parent 95ffd76 commit b46315d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/common/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ export class Emitter<T> {
get event(): Event<T> {
this._event ??= (callback: (e: T) => any, thisArgs?: any, disposables?: IDisposable[] | DisposableStore) => {
if (this._leakageMon && this._size > this._leakageMon.threshold * 3) {
const message = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size}/${this._leakageMon.threshold})`;
const message = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;
console.warn(message);

const tuple = this._leakageMon.getMostFrequentStack() ?? ['UNKNOWN stack', -1];
Expand Down

0 comments on commit b46315d

Please sign in to comment.