From f12ad36fd41d854aaae1842e56861c5a1c487154 Mon Sep 17 00:00:00 2001 From: Ken Murchison Date: Thu, 25 Apr 2024 12:29:36 -0400 Subject: [PATCH] vcardparser.c: spit out partially parsed vCard on error --- src/libicalvcard/vcardparser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libicalvcard/vcardparser.c b/src/libicalvcard/vcardparser.c index 2ff644c3d..838701cbf 100755 --- a/src/libicalvcard/vcardparser.c +++ b/src/libicalvcard/vcardparser.c @@ -1025,6 +1025,10 @@ vcardcomponent *vcardparser_parse_string(const char *str) parser.root = NULL; } } + else { + printf("vcardparser_parse_string() failed:\n%s\n", + vcardcomponent_as_vcard_string(parser.root)); + } vcardparser_free(&parser);