Commit 6ceb2cb3 authored by Simon Knox's avatar Simon Knox

only show error if there is an error

parent b44b4d4d
......@@ -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'));
});
}
}
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