mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Fix reported incorrect error message
* When uploading to a Personal Shared Folder, do not display an error message about free space, as, due to it being a Shared Folder, no space details are ever provided
This commit is contained in:
parent
ba1d225dba
commit
07068eec11
1 changed files with 6 additions and 4 deletions
10
src/sync.d
10
src/sync.d
|
|
@ -8714,10 +8714,12 @@ class SyncEngine {
|
|||
// Do the flags get updated?
|
||||
if (quotaRemaining <= 0) {
|
||||
if (appConfig.accountType == "personal"){
|
||||
// zero space available
|
||||
addLogEntry("ERROR: OneDrive account currently has zero space available. Please free up some space online or purchase additional capacity.");
|
||||
quotaRemaining = 0;
|
||||
quotaAvailable = false;
|
||||
if (driveId == appConfig.defaultDriveId) {
|
||||
// zero space available on our drive
|
||||
addLogEntry("ERROR: OneDrive account currently has zero space available. Please free up some space online or purchase additional capacity.");
|
||||
quotaRemaining = 0;
|
||||
quotaAvailable = false;
|
||||
}
|
||||
} else {
|
||||
// zero space available is being reported, maybe being restricted?
|
||||
addLogEntry("WARNING: OneDrive quota information is being restricted or providing a zero value. Please fix by speaking to your OneDrive / Office 365 Administrator.", ["verbose"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue