summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo/index.js
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2017-10-12 21:11:10 -0400
committerJacob Schatz <jschatz1@gmail.com>2017-10-12 21:11:10 -0400
commitba7bf05ebc57be2f7db834e353e6f6f6327ace93 (patch)
tree4813ae9cd97226c129a46f1feb306ccb02f34113 /app/assets/javascripts/repo/index.js
parent1d790ab95e0cca7e2e248c8c66af01018e111bdc (diff)
downloadgitlab-ce-reject-push-simplier.tar.gz
Solve static analysis problems.reject-push-simplier
Diffstat (limited to 'app/assets/javascripts/repo/index.js')
-rw-r--r--app/assets/javascripts/repo/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/repo/index.js b/app/assets/javascripts/repo/index.js
index f2e86384fb5..0e029ccaf3f 100644
--- a/app/assets/javascripts/repo/index.js
+++ b/app/assets/javascripts/repo/index.js
@@ -37,6 +37,9 @@ function setInitialStore(dataset) {
Store.checkIsCommitable();
Service.branchSingle()
.then(Store.setBranchHash);
+ .catch(() => {
+ Flash('There was a problem initializing the repo editor.');
+ });
}
function initRepo(el) {