commit 9acfa96d0769b298bce25b752b0e7af20d446721
parent b21929ebddafb43cd10ddf6fcbdc9736522fd3bd
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Sun, 16 Jan 2022 23:14:21 +0100
feat(caldav): improve error messages
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/caldav.c b/src/caldav.c
@@ -237,7 +237,7 @@ char* get_oauth_code(const char* verifier, WINDOW* header) {
int status;
if ((status=getaddrinfo(NULL, MKSTR(GOOGLE_OAUTH_REDIRECT_PORT), &hints, &addr_res)) != 0) {
- fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(status));
+ fprintf(stderr, "Error - getaddrinfo: %s\n", gai_strerror(status));
}
void *addr;
@@ -440,7 +440,7 @@ char* caldav_req(struct tm* date, char* url, char* http_method, char* postfields
curl_easy_cleanup(curl);
if (res != CURLE_OK) {
- fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res));
+ fprintf(stderr, "Error - curl_easy_perform() failed: %s\n", curl_easy_strerror(res));
return NULL;
}
}
@@ -726,7 +726,6 @@ int caldav_sync(struct tm* date,
localfile_time = localtime(&attr.st_mtime);
}
- fprintf(stderr, "Local dst: %i\n", localfile_time->tm_isdst);
// set to negative value, so mktime uses timezone information and system databases
// to attempt to determine whether DST is in effect at the specified time
localfile_time->tm_isdst = -1;