only show error if there is an error

This commit is contained in:
Simon Knox 2018-02-20 17:32:25 +11:00
parent b44b4d4d64
commit 6ceb2cb3c0
1 changed files with 3 additions and 1 deletions

View File

@ -88,6 +88,8 @@ export default class SingleFileDiff {
if (cb) cb();
})
.catch(createFlash(__('An error occurred while retrieving diff')));
.catch(() => {
createFlash(__('An error occurred while retrieving diff'));
});
}
}