Skip to content

Commit 05509b0

Browse files
committed
Update Error messages for TxValidityUpperBoundValidationError and TxFeeValidationError
Issue #4591
1 parent 7ef8a73 commit 05509b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cardano-cli/src/Cardano/CLI/Shelley/Run/Validate.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ data TxFeeValidationError
7171

7272
instance Error TxFeeValidationError where
7373
displayError (TxFeatureImplicitFeesE era) =
74-
"Transaction _ fee not supported in " <> Text.unpack (renderEra era)
74+
"Implicit transaction fee not supported in " <> Text.unpack (renderEra era)
7575
displayError (TxFeatureExplicitFeesE era) =
76-
"Transaction _ fee not supported in " <> Text.unpack (renderEra era)
76+
"Explicit transaction fee not supported in " <> Text.unpack (renderEra era)
7777

7878
validateTxFee :: CardanoEra era
7979
-> Maybe Lovelace
@@ -154,7 +154,7 @@ newtype TxValidityUpperBoundValidationError
154154

155155
instance Error TxValidityUpperBoundValidationError where
156156
displayError (TxValidityUpperBoundNotSupported era) =
157-
"Transaction validity upper bound not supported in " <> Text.unpack (renderEra era)
157+
"Transaction validity upper bound must be specified in " <> Text.unpack (renderEra era)
158158

159159
validateTxValidityUpperBound
160160
:: CardanoEra era

0 commit comments

Comments
 (0)