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:
abraunegg 2019-09-17 11:15:03 +10:00 committed by GitHub
parent 2abc05af1d
commit 72467e32ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}