Commit 088d03bf authored by Clement Ho's avatar Clement Ho

Merge branch 'fix-diff-flash' into 'master'

only show error if there is an error

See merge request gitlab-org/gitlab-ce!17228
parents 07fc0ea7 6ceb2cb3
...@@ -88,6 +88,8 @@ export default class SingleFileDiff { ...@@ -88,6 +88,8 @@ export default class SingleFileDiff {
if (cb) cb(); if (cb) cb();
}) })
.catch(createFlash(__('An error occurred while retrieving diff'))); .catch(() => {
createFlash(__('An error occurred while retrieving diff'));
});
} }
} }
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