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
  • Loading branch information
monsieurtanuki committed Dec 7, 2023
1 parent 8b62ef8 commit d3aa740
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 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 V2'
' - '
'${status.error}${isInvalidUser ? _getIncompleteUserData() : ''}',
'status=${status.status} - errors=${status.error} ${isInvalidUser ? _getIncompleteUserData() : ''}',
);
}
}
Expand Down

0 comments on commit d3aa740

Please sign in to comment.