Skip to content

Commit

Permalink
Replace spaces in Doc with <+>
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Galazyn <[email protected]>
  • Loading branch information
palas and carbolymer committed Sep 24, 2024
1 parent caa04f9 commit eb1b59b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions cardano-cli/src/Cardano/CLI/Types/Errors/GovernanceActionsError.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ instance Error GovernanceActionsError where
GovernanceActionsReadStakeCredErrror e ->
prettyError e
GovernanceActionsProposalMismatchedHashError adt expectedHash actualHash ->
"Hashes do not match while checking "
<> pretty (anchorDataTypeCheckName adt)
<> " hashes! \n"
<> "Expected: "
<> pretty (show (L.extractHash expectedHash))
<> "\n Actual: "
<> pretty (show (L.extractHash actualHash))
"Hashes do not match while checking"
<+> pretty (anchorDataTypeCheckName adt)
<+> "hashes!"
<> "\nExpected:"
<+> pretty (show (L.extractHash expectedHash))
<> "\n Actual:"
<+> pretty (show (L.extractHash actualHash))
GovernanceActionsProposalFetchURLError adt fetchErr ->
"Error while checking "
<> pretty (anchorDataTypeCheckName adt)
<> " hash: "
<> pretty (displayException fetchErr)
"Error while checking"
<+> pretty (anchorDataTypeCheckName adt)
<+> "hash:"
<+> pretty (displayException fetchErr)

data AnchorDataTypeCheck = ProposalCheck
deriving Show
Expand Down
14 changes: 7 additions & 7 deletions cardano-cli/src/Cardano/CLI/Types/Errors/HashCmdError.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ data HashCmdError
instance Error HashCmdError where
prettyError = \case
HashMismatchedHashError expectedHash actualHash ->
"Hashes do not match! \n"
<> "Expected: "
<> pretty (show (extractHash expectedHash))
<> "\n Actual: "
<> pretty (show (extractHash actualHash))
"Hashes do not match!"
<> "\nExpected:"
<+> pretty (show (extractHash expectedHash))
<> "\n Actual:"
<+> pretty (show (extractHash actualHash))
HashReadFileError filepath exc ->
"Cannot read " <> pretty filepath <> ": " <> pretty (displayException exc)
"Cannot read" <+> pretty filepath <> ":" <+> pretty (displayException exc)
HashWriteFileError fileErr ->
prettyError fileErr
HashReadScriptError filepath err ->
"Cannot read script at " <> pretty filepath <> ": " <> prettyError err
"Cannot read script at" <+> pretty filepath <> ":" <+> prettyError err
HashFetchURLError fetchErr ->
pretty (displayException fetchErr)

Expand Down

0 comments on commit eb1b59b

Please sign in to comment.