Skip to content

Commit

Permalink
Fix reported incorrect error message
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
abraunegg committed Sep 29, 2024
1 parent ba1d225 commit 07068ee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/sync.d
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down

0 comments on commit 07068ee

Please sign in to comment.