Skip to content

Commit

Permalink
Fix destructuring not accepted by GAS
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanRemiDelteil committed Mar 30, 2018
1 parent b630c26 commit 8d42816
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ErrorHandler.gs.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ function logError(e, additionalParams) {
lineNumber: e.lineNumber,
filePath: e.fileName
};

var addonName = additionalParams && additionalParams.addonName || undefined;

var {stack, lastFunctionName} = ErrorHandler_._convertErrorStack(e.stack, addonName);
log.context.reportLocation.functionName = lastFunctionName;
log.message+= '\n '+ stack;
var res = ErrorHandler_._convertErrorStack(e.stack, addonName);
log.context.reportLocation.functionName = res.lastFunctionName;
log.message+= '\n '+ res.stack;
}

if (e.responseCode) {
Expand Down

0 comments on commit 8d42816

Please sign in to comment.