Show add rss feed error

This commit is contained in:
CzBiX
2020-04-29 14:49:39 +08:00
parent 119368d2c8
commit 2f92ca0ec5

View File

@@ -379,7 +379,14 @@ export default class RssDialog extends HasTask {
text: tr('label.adding'),
})
await api.addRssFeed(input);
try {
await api.addRssFeed(input);
} catch (e) {
this.showSnackBar({
text: e.response ? e.response.data : e.message,
})
return
}
await this.runTask();
this.closeSnackBar();