Skip to content

Commit

Permalink
fix: 5864 - more verbose error message for details (#5892)
Browse files Browse the repository at this point in the history
* fix: 5864 - more verbose error message for details

* off-dart 3.7.1 with product_type not included if null

* error AND status_verbose
  • Loading branch information
monsieurtanuki authored Nov 21, 2024
1 parent ce4ea6a commit 5a38f01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ class BackgroundTaskDetails extends BackgroundTaskBarcode
}
throw Exception(
'Could not save product - API V2'
' - '
'status=${status.status} - errors=${status.error} ${isInvalidUser ? _getIncompleteUserData() : ''}',
' - status=${status.status}'
' - errors=${status.error}'
' - status_verbose=${status.statusVerbose}'
' ${isInvalidUser ? _getIncompleteUserData() : ''}',
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/smooth_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1076,10 +1076,10 @@ packages:
dependency: "direct main"
description:
name: openfoodfacts
sha256: "56df1ab54751a1b4491d99580b90141ea3327cf546724fa6055943e85d64fd51"
sha256: "0ad8ac186a09427d74567460bbcdb1a984afd2558a172afaab87825f0bfec026"
url: "https://pub.dev"
source: hosted
version: "3.17.0"
version: "3.17.1"
openfoodfacts_flutter_lints:
dependency: "direct dev"
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/smooth_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ dependencies:
path: ../scanner/zxing


openfoodfacts: 3.17.0
openfoodfacts: 3.17.1
# openfoodfacts:
# path: ../../../openfoodfacts-dart

Expand Down

0 comments on commit 5a38f01

Please sign in to comment.