Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove temporary code from CLI for raw server errors + some small error fixes #304

Merged
merged 3 commits into from
May 23, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented May 22, 2019

Issue Number

#260

Overview

  • I have fixed an incorrect error message
  • I have removed some boilerplate code in the CLI for 404 & 409 errors and instead, now relies on more descriptive errors from the API
  • I have fixed the middleware for adjusting errors, making sure it only adjust "raw" errors (was sometimes adjusting also our api-level errors :s)

Comments

This should finalize fixing #260

@KtorZ KtorZ requested a review from piotr-iohk May 22, 2019 14:26
@KtorZ KtorZ self-assigned this May 22, 2019
@KtorZ KtorZ force-pushed the KtorZ/260/api-better-errors branch from 022bb4f to 8b2e6e2 Compare May 23, 2019 07:27
@@ -354,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 "
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♂️

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, I would recommend "excluding fee amount".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 👍

@KtorZ KtorZ force-pushed the KtorZ/260/api-better-errors branch from 8b2e6e2 to 2009542 Compare May 23, 2019 07:37
@KtorZ KtorZ merged commit 359f8be into master May 23, 2019
@iohk-bors iohk-bors bot deleted the KtorZ/260/api-better-errors branch May 23, 2019 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants