Skip to content

Commit

Permalink
Dio Exception Handling updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mirmoktadir committed Jan 13, 2023
1 parent dc063a4 commit 3927368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app/service/api_exceptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DioExceptions implements Exception {
case 400:
return error['error'] ?? error["message"] ?? 'Bad request';
case 404:
return error['error'] ?? error["message"];
return error['error'] ?? error["message"] ?? "Api Url Incorrect";
case 500:
return error['error'] ?? error["message"] ?? "Internal Server Error";
default:
Expand Down

0 comments on commit 3927368

Please sign in to comment.