Skip to content

Commit

Permalink
event handler internal error stacktrack
Browse files Browse the repository at this point in the history
  • Loading branch information
tchakabam committed Nov 28, 2017
1 parent 4cf1d33 commit 53e0ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class EventHandler {
try {
eventToFunction.call(this, event, data).call();
} catch (err) {
logger.error(`internal error happened while processing ${event}:${err.message}`);
logger.error(`An internal error happened while handling event ${event}. Error message: "${err.message}". Here is a stacktrace:`, err);
this.hls.trigger(Event.ERROR, {type: ErrorTypes.OTHER_ERROR, details: ErrorDetails.INTERNAL_EXCEPTION, fatal: false, event : event, err : err});
}
}
Expand Down

0 comments on commit 53e0ef8

Please sign in to comment.