Permalink
Browse files

fixup! [AD-448] Refactor backend error messages

  • Loading branch information...
rvem committed Dec 6, 2018
1 parent 11e7ade commit d88817c771bd22cf6b4b176bae4246c269219674
@@ -56,7 +56,7 @@ instance Buildable CreateAccountError where
"' is completely exhausted") hdRootId
instance Exception CreateAccountError where
displayException e = "An error occurred during account creation:\n"
displayException e = "An error occurred during account creation: "
<> formatToString build e
-- | Creates a new 'Account' for the input wallet.
@@ -76,7 +76,7 @@ instance Exception CreateAddressError where
CreateAddressHdSeqGenerationFailed _ -> walletPassExceptionToException e
_ -> SomeException e
fromException = walletPassExceptionFromException
displayException e = ("An error occurred during address request:\n")
displayException e = ("An error occurred during address request: ")
<> formatToString build e
-- | Creates a new 'HdAddress' for the input account.
@@ -64,7 +64,7 @@ instance Buildable CreateWalletError where
bprint F.build createAddressError
instance Exception CreateWalletError where
displayException e = ("An error occurred during wallet creation:\n")
displayException e = ("An error occurred during wallet creation: ")
<> formatToString build e
newtype HasNonemptyPassphrase = HasNonemptyPassphrase Bool

0 comments on commit d88817c

Please sign in to comment.