Skip to content

Commit def733f

Browse files
committed
fix: [Can't get package info after upgrgade to v1.3.1](fluttercommunity/plus_plugins#747)
1 parent 775e7c8 commit def733f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/lib/http/api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Api {
5353
T? res;
5454
try {
5555
if (resp.statusCode != HttpStatus.ok && resp.bodyBytes.length == 0)
56-
throw HttpErrorCode(resp.statusCode, message: 'No resp body');
56+
throw HttpErrorCode(resp.statusCode, message: 'No resp body from ${resp.request!.url.path}');
5757
var decodeBody = json.decode(utf8.decode(resp.bodyBytes));
5858
res = decodeBody is Map ? builder(decodeBody) : builder({'list': decodeBody});
5959
} catch (e) {

app/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies:
3030
xdg_directories: ^0.2.0
3131
gsettings: 0.2.3
3232
provider: ^6.0.2
33-
package_info_plus: ^1.3.0
33+
package_info_plus: 1.3.1
3434
easy_localization: ^3.0.0
3535
glass_kit: ^2.0.1
3636
rect_getter: ^1.0.0

0 commit comments

Comments
 (0)