Skip to content

Commit

Permalink
fix: improve error-message handling when saving objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Aug 21, 2024
1 parent 5f5b8f9 commit e8d78a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default function extractFirstErrorMessageFromServer(response) {
const messages = [
extractFirstMessageFromErrorReports(response),
extractFirstMessageFromMessages(response),
response.message
];

return firstNotUndefinedIn(messages);
Expand Down

0 comments on commit e8d78a7

Please sign in to comment.