flashbots-cli
Version:
Flashbots CLI tool.
12 lines (11 loc) • 333 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleGenericError = void 0;
const handleGenericError = (e, context) => {
if (e.reason && e.value)
context.error(`${e.reason}: ${e.value}`);
else {
context.error(e);
}
};
exports.handleGenericError = handleGenericError;