UNPKG

vtex

Version:

The platform for e-commerce apps

13 lines (12 loc) 531 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createFlowIssueError = void 0; const ErrorReport_1 = require("./ErrorReport"); const ErrorKinds_1 = require("./ErrorKinds"); /** Create and register on telemetry an ErrorReport with errorKind = ErrorKinds.FLOW_ISSUE_ERROR */ exports.createFlowIssueError = (msg) => { return ErrorReport_1.ErrorReport.createAndMaybeRegisterOnTelemetry({ kind: ErrorKinds_1.ErrorKinds.FLOW_ISSUE_ERROR, originalError: new Error(msg), }); };