RootSoft/algorand-dart

Include error message in AlgorandException

RootSoft opened this issue · 1 comments

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.

Fixed in v1.0.2.