mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-18 05:36:41 +02:00
Update OneDrive API status code 500 handling (#661)
* Update OneDrive API status code 500 handling when uploading files as error message is not correct
This commit is contained in:
parent
2abc05af1d
commit
72467e32ca
|
@ -783,10 +783,8 @@ final class SyncEngine
|
|||
|
||||
// HTTP request returned status code 500 (Internal Server Error)
|
||||
if (e.httpStatusCode == 500) {
|
||||
// Stop application
|
||||
log.log("\n\nOneDrive returned a 'HTTP 500 - Internal Server Error'");
|
||||
log.log("This is a OneDrive API Bug - https://github.com/OneDrive/onedrive-api-docs/issues/844\n\n");
|
||||
log.log("\nRemove your '", cfg.databaseFilePath, "' file and try to sync again\n");
|
||||
// display what the error is
|
||||
displayOneDriveErrorMessage(e.msg);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue