3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 04:25:01 +00:00

feat: add rate limits to import/export

This commit is contained in:
Dragory 2021-11-03 00:49:36 +02:00
parent 45941e47d6
commit fc4f106afb
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 32 additions and 2 deletions

View file

@ -108,7 +108,7 @@ export default {
caseHandlingMode: this.importCaseMode,
});
} catch (err) {
this.importError = String(err);
this.importError = err.body?.error ?? String(err);
return;
} finally {
this.importing = false;
@ -134,7 +134,7 @@ export default {
guildId: this.$route.params.guildId,
});
} catch (err) {
this.exportError = String(err);
this.exportError = err.body?.error ?? String(err);
return;
} finally {
this.exporting = false;