From ba7bf05ebc57be2f7db834e353e6f6f6327ace93 Mon Sep 17 00:00:00 2001 From: Jacob Schatz Date: Thu, 12 Oct 2017 21:11:10 -0400 Subject: Solve static analysis problems. --- app/assets/javascripts/repo/index.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/assets/javascripts/repo/index.js') 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) { -- cgit v1.2.1