mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-05 23:43:16 +02:00
* Log 'why' the resume upload failed * Remove the 'resume_upload' as it is invalid & contains bad data
This commit is contained in:
parent
c6923cdf29
commit
ea26e4d830
|
@ -83,6 +83,7 @@ struct UploadSession
|
|||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
// do we have a valid response from OneDrive?
|
||||
if (response.object()){
|
||||
// JSON object
|
||||
|
@ -96,10 +97,18 @@ struct UploadSession
|
|||
}
|
||||
} else {
|
||||
// bad data
|
||||
log.vlog("Restore file upload session failed - invalid data response from OneDrive");
|
||||
if (exists(sessionFilePath)) {
|
||||
remove(sessionFilePath);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// not a JSON object
|
||||
log.vlog("Restore file upload session failed - invalid response from OneDrive");
|
||||
if (exists(sessionFilePath)) {
|
||||
remove(sessionFilePath);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue