X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FOcppError.js;h=89ead59a953473e53cb58098e08fb6c50f0578b1;hb=72766a82a1372713a48d9e7143a0348d7fd56a29;hp=1793eae3cded9cc8fe34aa6d06d35587509279f3;hpb=facd8ebde74a5d3d16ed65f88d942abcbe79a1e0;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/OcppError.js b/src/charging-station/OcppError.js index 1793eae3..89ead59a 100644 --- a/src/charging-station/OcppError.js +++ b/src/charging-station/OcppError.js @@ -8,7 +8,7 @@ class OCPPError extends Error { Object.setPrototypeOf(this, OCPPError.prototype); // for instanceof - Error.captureStackTrace ? (Error.captureStackTrace(this, this.constructor)) : (this.stack = (new Error()).stack); + Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : (this.stack = (new Error()).stack); } }