Enhance error message for curl CA SSL issue (Issue #507) (#508)

* Enhance error message when unable to connect to Microsoft OneDrive service when the CA SSL certificate has issues
This commit is contained in:
abraunegg 2019-05-24 19:17:08 +10:00 committed by GitHub
parent 239085f1fc
commit bac9ab41ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,8 @@ int main(string[] args)
online = testNetwork();
} catch (CurlException e) {
// No network connection to OneDrive Service
log.error("No network connection to Microsoft OneDrive Service");
log.error("Cannot connect to Microsoft OneDrive Service");
log.error("Reason: ", e.msg);
if (!cfg.getValueBool("monitor")) {
return EXIT_FAILURE;
}