Skip to content

Commit

Permalink
fix: 4870 - more verbose error message for detail background tasks (#…
Browse files Browse the repository at this point in the history
…4877)

* fix: 4870 - more verbose error message for detail background tasks

* Update packages/smooth_app/lib/background/background_task_details.dart

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

* Update packages/smooth_app/lib/background/background_task_details.dart

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
  • Loading branch information
monsieurtanuki and teolemon committed Dec 8, 2023
1 parent b91a784 commit 408ef49
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ class BackgroundTaskDetails extends BackgroundTaskBarcode {
}
}
throw Exception(
'Could not save product'
'Could not save product - API V3'
' - '
'${result.errors}${isInvalidUser ? _getIncompleteUserData() : ''}',
'status=${result.status} - errors=${result.errors} ${isInvalidUser ? _getIncompleteUserData() : ''}',
);
}
return;
Expand All @@ -181,9 +181,9 @@ class BackgroundTaskDetails extends BackgroundTaskBarcode {
}
}
throw Exception(
'Could not save product'
'Could not save product - API V2'
' - '
'${status.error}${isInvalidUser ? _getIncompleteUserData() : ''}',
'status=${status.status} - errors=${status.error} ${isInvalidUser ? _getIncompleteUserData() : ''}',
);
}
}
Expand Down

0 comments on commit 408ef49

Please sign in to comment.