Skip to content

Commit

Permalink
Merge pull request #605 from IntersectMBO/mkoura/cli_format_unsupported
Browse files Browse the repository at this point in the history
Fix error messages as CLI format is no longer supported
  • Loading branch information
mkoura authored Feb 12, 2024
2 parents 66216d0 + 1c650e9 commit 7e457f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

env:
# Modify this value to "invalidate" the cabal cache.
CABAL_CACHE_VERSION: "2024-02-06-1"
CABAL_CACHE_VERSION: "2024-02-12-1"

concurrency:
group: >
Expand Down
9 changes: 4 additions & 5 deletions cardano-cli/src/Cardano/CLI/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ data CddlError = CddlErrorTextEnv
instance Error CddlError where
prettyError = \case
CddlErrorTextEnv textEnvErr cddlErr ->
"Failed to decode neither the cli's serialisation format nor the ledger's " <>
"CDDL serialisation format. TextEnvelope error: " <> prettyError textEnvErr <> "\n" <>
"Failed to decode the ledger's CDDL serialisation format. " <>
"TextEnvelope error: " <> prettyError textEnvErr <> "\n" <>
"TextEnvelopeCddl error: " <> prettyError cddlErr
CddlIOError e ->
prettyError e
Expand Down Expand Up @@ -584,9 +584,8 @@ data CddlWitnessError
instance Error CddlWitnessError where
prettyError = \case
CddlWitnessErrorTextEnv teErr cddlErr ->
"Failed to decode neither the cli's serialisation format nor the ledger's \
\CDDL serialisation format. TextEnvelope error: " <> prettyError teErr <> "\n" <>
"TextEnvelopeCddl error: " <> prettyError cddlErr
"Failed to decode the ledger's CDDL serialisation format. TextEnvelope error: " <>
prettyError teErr <> "\n" <> "TextEnvelopeCddl error: " <> prettyError cddlErr
CddlWitnessIOError fileE ->
prettyError fileE

Expand Down
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/Types/Errors/TxCmdError.hs
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ renderTxCmdError = \case
prettyError err'
TxCmdTextEnvCddlError textEnvErr cddlErr ->
mconcat
[ "Failed to decode neither the cli's serialisation format nor the ledger's "
, "CDDL serialisation format. TextEnvelope error: " <> prettyError textEnvErr <> "\n"
[ "Failed to decode the ledger's CDDL serialisation format. "
, "TextEnvelope error: " <> prettyError textEnvErr <> "\n"
, "TextEnvelopeCddl error: " <> prettyError cddlErr
]
TxCmdTxExecUnitsErr (AnyTxCmdTxExecUnitsErr err') ->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Reading transaction CDDL file error: Failed to decode neither the cli's serialisation format nor the ledger's CDDL serialisation format. TextEnvelope error: path/file.txt: TextEnvelope decode error: DecoderErrorCustom "todecode" "decodeerr"
TextEnvelopeCddl error: path/file.txt: Unknown key witness specified
Reading transaction CDDL file error: Failed to decode the ledger's CDDL serialisation format. TextEnvelope error: path/file.txt: TextEnvelope decode error: DecoderErrorCustom "todecode" "decodeerr"
TextEnvelopeCddl error: path/file.txt: Unknown key witness specified

0 comments on commit 7e457f7

Please sign in to comment.