Skip to content

Commit

Permalink
handles error scenario when fulfilling a dsr immediately and ds updat…
Browse files Browse the repository at this point in the history
…e fails (#5193)
  • Loading branch information
mitchell852 authored Oct 26, 2020
1 parent 6b3cfa0 commit 5940129
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ var FormEditDeliveryServiceController = function(deliveryService, origin, topolo
$state.reload(); // reloads all the resolves for the view
messageModel.setMessages([ { level: 'success', text: 'Delivery Service [ ' + deliveryService.xmlId + ' ] updated' } ], false);
}
);
).catch(function(fault) {
$anchorScroll(); // scrolls window to top
messageModel.setMessages(fault.data.alerts, false);
});
}).catch(function(fault) {
$anchorScroll(); // scrolls window to top
messageModel.setMessages(fault.data.alerts, false);
Expand Down

0 comments on commit 5940129

Please sign in to comment.