From 8b2e6e2868e8f12aac04dfac50ec557ce8ee775b Mon Sep 17 00:00:00 2001 From: KtorZ Date: Wed, 22 May 2019 16:09:41 +0200 Subject: [PATCH] Fix incorrect error message --- lib/core/src/Cardano/Wallet/Api/Server.hs | 2 +- .../test/integration/Test/Integration/Scenario/CLISpec.hs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/src/Cardano/Wallet/Api/Server.hs b/lib/core/src/Cardano/Wallet/Api/Server.hs index 476585c1344..511d7a01bba 100644 --- a/lib/core/src/Cardano/Wallet/Api/Server.hs +++ b/lib/core/src/Cardano/Wallet/Api/Server.hs @@ -356,7 +356,7 @@ instance LiftHandler ErrCoinSelection where [ "I can't process this payment because there's not enough " , "UTxO available in the wallet. The total UTxO sums up to " , showT utxo, " Lovelace, but I need ", showT payment - , " Lovelace (inclusive of fee amount) in order to proceed " + , " Lovelace (exclusive of fee amount) in order to proceed " , " with the payment." ] diff --git a/lib/http-bridge/test/integration/Test/Integration/Scenario/CLISpec.hs b/lib/http-bridge/test/integration/Test/Integration/Scenario/CLISpec.hs index 967483d7f90..2d2b43f2886 100644 --- a/lib/http-bridge/test/integration/Test/Integration/Scenario/CLISpec.hs +++ b/lib/http-bridge/test/integration/Test/Integration/Scenario/CLISpec.hs @@ -178,7 +178,8 @@ specWithCluster = do (Exit c, Stdout out, Stderr err) <- getWalletViaCLI walId out `shouldBe` "" if (title == "40 chars hex") then - err `shouldBe` "Wallet not found.\n" + err `shouldBe` "I couldn't find a wallet with the given id:\ + \ 1111111111111111111111111111111111111111\n" else err `shouldBe` "wallet id should be an hex-encoded string of\ \ 40 characters\n"