RootSoft / algorand-dart

Unofficial community SDK to interact with the Algorand network, for Dart & Flutter
MIT License
36 stars 16 forks source link

Include error message in AlgorandException #29

Closed RootSoft closed 2 years ago

RootSoft commented 2 years ago

Description The current way to check for an error message from the node is using the following code snippet:

} on AlgorandException catch (ex) {
    final cause = ex.cause;
    if (cause is DioError) {
      print(cause.response?.data['message']);
    }
  }

Goal Include the error message in every AlgorandException if there's a message included in the JSON.

RootSoft commented 2 years ago

Fixed in v1.0.2.