Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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