Parse StorageLimitExceededError while fetching upload URLs
This commit is contained in:
parent
fa2f40bc7a
commit
2659cb8ebc
1 changed files with 2 additions and 0 deletions
|
@ -435,6 +435,8 @@ class FileUploader {
|
|||
} on DioError catch (e) {
|
||||
if (e.response.statusCode == 402) {
|
||||
throw NoActiveSubscriptionError();
|
||||
} else if (e.response.statusCode == 426) {
|
||||
throw StorageLimitExceededError();
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue