Skip to content

Commit a0cff32

Browse files
claudisa-uustsnel
authored andcommitted
YDA-6515: make group delete error more informative
1 parent b4d2a86 commit a0cff32

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

group_manager/static/group_manager/js/group_manager.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,11 @@ $(function () {
19841984
// Re-enable group list entry.
19851985
$('#group-list .group.delete-pending[data-name="' + Yoda.escapeQuotes(groupName) + '"]').removeClass('delete-pending disabled').attr('title', '')
19861986

1987-
if ('message' in result) { window.alert(result.message) } else {
1987+
if ('message' in result) {
1988+
window.alert(result.message)
1989+
} else if ('status_info' in result) {
1990+
window.alert(result.status_info)
1991+
} else {
19881992
window.alert(
19891993
'Error: Could not remove the selected group due to an internal error.\n' +
19901994
'Please contact a Yoda administrator'

0 commit comments

Comments
 (0)