Check if an error message is present when polling finishes

parent d9f4be96
......@@ -59,6 +59,12 @@
continuePolling();
} else {
this.isMakingRequest = false;
if (res.merge_error.length) {
this.rebasingError = res.merge_error;
Flash('Something went wrong. Please try again.');
}
eventHub.$emit('MRWidgetUpdateRequested');
stopPolling();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment