Skip to content

Commit

Permalink
fix: less verbose on unhandled ERROR event
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jun 8, 2023
1 parent 7614c37 commit 40c76df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jdom/eventsource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class JDEventSource implements IEventSource {
const eventListeners = this.listeners[eventName]
if (!eventListeners || eventListeners.length == 0) {
// report unhandled errors
if (eventName == ERROR) console.error(args[0])
if (eventName == ERROR && Flags.diagnostics) console.debug(args[0])
return false
}
for (let i = 0; i < eventListeners.length; ++i) {
Expand Down

0 comments on commit 40c76df

Please sign in to comment.