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 Sep 30, 2024
1 parent 2ae8fe9 commit c777720
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 c777720

Please sign in to comment.