You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm missing additional information on request and response when I get a decoding error from catch.
I have a suggestion to wrap the error in a DioException.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm missing additional information on request and response when I get a decoding error from catch.
I have a suggestion to wrap the error in a DioException.
Now:
on Object catch (e, s) { errorLogger?.logError(e, s, _options); rethrow; }
Offer:
on Object catch (e, s) { errorLogger?.logError(e, s, _options); throw DioException( requestOptions: _result.requestOptions, response: _result, type: DioExceptionType.badResponse, error: e, stackTrace: s, message: e.toString()); }
Beta Was this translation helpful? Give feedback.
All reactions