Skip to content

Commit

Permalink
Fix some cases that were not considering both message and description…
Browse files Browse the repository at this point in the history
… when displaying errors. (geonetwork#7517)
  • Loading branch information
ianwallen authored Nov 30, 2023
1 parent 21ed092 commit 255e5d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
// Data needs improvements
// See https://github.com/geonetwork/core-geonetwork/issues/723
gnAlertService.addAlert({
msg: reason.data.description,
msg: reason.data.message || reason.data.description,
type: "danger"
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
},
function (r) {
gnAlertService.addAlert({
msg: r.data.description,
msg: r.data.message || r.data.description,
delay: 20000,
type: "danger"
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
});
} else {
gnAlertService.addAlert({
msg: error.data.description,
msg: error.data.message || error.data.description,
type: "danger"
});
}
Expand Down

0 comments on commit 255e5d2

Please sign in to comment.