Skip to content

Commit

Permalink
Fix the limit exceeded errors (#1534)
Browse files Browse the repository at this point in the history
* Fix the limit exceeded errors

* Improve the error message
  • Loading branch information
rumtid authored May 14, 2024
1 parent 9235440 commit 3970010
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/filebrowser/auto-update-mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ void AutoUpdateManager::onUpdateTaskFinished(bool success)
} else if (task->httpErrorCode() == 441) {
error_msg = tr("File does not exist");
} else if (task->httpErrorCode() == 442) {
error_msg = tr("File count limit exceeded");
error_msg = tr("File size exceeds limit");
} else if (task->httpErrorCode() == 447) {
error_msg = tr("Number of file exceeds limit");
} else {
error_msg = task->errorString();
}
Expand Down
4 changes: 3 additions & 1 deletion src/filebrowser/file-browser-dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,9 @@ void FileBrowserDialog::onUploadFinished(bool success)
} else if (task->httpErrorCode() == 401) {
_error = tr("Authorization expired");
} else if (task->httpErrorCode() == 442) {
_error = tr("File count limit exceeded");
_error = tr("File size exceeds limit");
} else if (task->httpErrorCode() == 447) {
_error = tr("Number of file exceeds limit");
} else {
_error = task->errorString();
}
Expand Down

0 comments on commit 3970010

Please sign in to comment.