diff --git a/app/lib/http/api.dart b/app/lib/http/api.dart index 215d6ea..6103ba8 100644 --- a/app/lib/http/api.dart +++ b/app/lib/http/api.dart @@ -53,7 +53,7 @@ class Api { T? res; try { if (resp.statusCode != HttpStatus.ok && resp.bodyBytes.length == 0) - throw HttpErrorCode(resp.statusCode, message: 'No resp body'); + throw HttpErrorCode(resp.statusCode, message: 'No resp body from ${resp.request!.url.path}'); var decodeBody = json.decode(utf8.decode(resp.bodyBytes)); res = decodeBody is Map ? builder(decodeBody) : builder({'list': decodeBody}); } catch (e) { diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 6b7f990..f828cde 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -30,7 +30,7 @@ dependencies: xdg_directories: ^0.2.0 gsettings: 0.2.3 provider: ^6.0.2 - package_info_plus: ^1.3.0 + package_info_plus: 1.3.1 easy_localization: ^3.0.0 glass_kit: ^2.0.1 rect_getter: ^1.0.0