block-timestamp/lib/services/error.js

14 lines
343 B
JavaScript
Raw Permalink Normal View History

2024-12-23 00:50:20 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.newError = newError;
function newError(type,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
err) {
return {
type,
timestamp: Math.floor(Date.now() / 1000),
message: err.message,
stack: err.stack,
};
}