From 39273686bf034c789f11d2562d1ec47f5a956a6d Mon Sep 17 00:00:00 2001 From: mirmoktadir Date: Fri, 13 Jan 2023 15:10:42 +0600 Subject: [PATCH] Dio Exception Handling updated --- lib/app/service/api_exceptions.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/service/api_exceptions.dart b/lib/app/service/api_exceptions.dart index 0dd4fa2..68dbcf0 100644 --- a/lib/app/service/api_exceptions.dart +++ b/lib/app/service/api_exceptions.dart @@ -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: