Skip to content

Commit

Permalink
Merge pull request #6 from peercoin/2.1.7
Browse files Browse the repository at this point in the history
2.1.7
  • Loading branch information
willyfromtheblock committed Dec 30, 2023
2 parents 297c736 + 19d2073 commit e880131
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 9 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2.1.7
- Improved error handling

# 2.1.6
- Update dart, linter & dependencies
- Dio 5.4.0 is now used
Expand All @@ -6,21 +9,20 @@
- Correctly forward RPC errors that are not 404
- disable loggint to print

## 2.1.4
# 2.1.4
- Rebase HTTP calls on Dio lib

## 2.1.3
# 2.1.3
- More caching to improve performance

## 2.1.2
# 2.1.2
- Cache http client for better performance

## 2.1.1
# 2.1.1
- Disable rethrow to trigger http retry behaviour

## 2.1.0
# 2.1.0
- Change HTTP client (retry)

## 2.0.0

# 2.0.0
- Fork over, null safety, tests
6 changes: 5 additions & 1 deletion lib/src/rpcclient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ class RPCClient {
code: 401,
message: 'Unauthorized',
);

case 403:
throw HTTPException(
code: 403,
message: 'Forbidden',
);
case 404:
if (errorResponseBody['error'] != null) {
var error = errorResponseBody['error'];
Expand Down

0 comments on commit e880131

Please sign in to comment.