15 lines
365 B
JavaScript
15 lines
365 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.newError = newError;
|
||
|
function newError(type, netId,
|
||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||
|
err) {
|
||
|
return {
|
||
|
type,
|
||
|
netId,
|
||
|
timestamp: Math.floor(Date.now() / 1000),
|
||
|
message: err.message,
|
||
|
stack: err.stack,
|
||
|
};
|
||
|
}
|