Skip to content

Commit

Permalink
Update error reporting when a plugin throws an exception (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSNev committed Aug 31, 2021
1 parent 9234ce9 commit 3ed03e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { _InternalLogMessage } from "./DiagnosticLogger";
import { doPerf } from "./PerfManager";
import { LoggingSeverity, _InternalMessageId } from '../JavaScriptSDK.Enums/LoggingEnums';
import { isFunction } from './HelperFuncs';
import { dumpObj } from './EnvUtils';

export class TelemetryPluginChain implements ITelemetryPluginChain {

Expand Down Expand Up @@ -97,7 +98,7 @@ export class TelemetryPluginChain implements ITelemetryPluginChain {
itemCtx.diagLog().throwInternal(
LoggingSeverity.CRITICAL,
_InternalMessageId.PluginException,
"Plugin [" + plugin.identifier + "] failed during processTelemetry - " + error);
"Plugin [" + plugin.identifier + "] failed during processTelemetry - " + dumpObj(error));
}

if (_nextProxy && !hasRun) {
Expand Down

0 comments on commit 3ed03e9

Please sign in to comment.