From 72467e32ca2d636e2067d7045881ce632d3c8f51 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Tue, 17 Sep 2019 11:15:03 +1000 Subject: [PATCH] Update OneDrive API status code 500 handling (#661) * Update OneDrive API status code 500 handling when uploading files as error message is not correct --- src/sync.d | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sync.d b/src/sync.d index c4ad7ba9..61a8463f 100644 --- a/src/sync.d +++ b/src/sync.d @@ -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; }