Skip to content

Commit

Permalink
fix: improve error-message handling when saving objects (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo authored Sep 30, 2024
1 parent 2ae8fe9 commit 9de41e8
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 9de41e8

Please sign in to comment.