@marinade.finance/cli-common
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@marinade.finance/cli-common", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "CLI tooling", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -10,3 +10,4 @@ import { Transaction, VersionedTransaction } from '@solana/web3.js'; | ||
readonly transaction?: Transaction | VersionedTransaction; | ||
constructor({ valueName, value, msg, cause, logs, transaction, }: { | ||
constructor({ commandName, valueName, value, msg, cause, logs, transaction, }: { | ||
commandName?: string; | ||
valueName?: string; | ||
@@ -13,0 +14,0 @@ value?: any; |
@@ -7,4 +7,8 @@ "use strict"; | ||
class CliCommandError extends Error { | ||
constructor({ valueName, value, msg, cause, logs, transaction, }) { | ||
const { commandName } = (0, context_1.getContext)(); | ||
constructor({ commandName, valueName, value, msg, cause, logs, transaction, }) { | ||
if (commandName === undefined) { | ||
// eslint-disable-next-line @typescript-eslint/no-extra-semi | ||
; | ||
({ commandName } = (0, context_1.getContext)()); | ||
} | ||
let errorMessage; | ||
@@ -11,0 +15,0 @@ if (valueName) { |
Sorry, the diff of this file is not supported yet
35998
595