From 66a98861d0fbb7cba742b63bf97268a2a619c5e0 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Sat, 10 Aug 2024 15:51:34 +0200 Subject: Some small updates here and there --- src/querykv1/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/querykv1') diff --git a/src/querykv1/main.cpp b/src/querykv1/main.cpp index 9580328..11437f4 100644 --- a/src/querykv1/main.cpp +++ b/src/querykv1/main.cpp @@ -90,10 +90,10 @@ bool parse(const char *path, Kv1Records &into) { parser.parse(); bool ok = true; - if (!parser.gerrors.empty()) { + if (!parser.global_errors.empty()) { ok = false; fputs("Parser reported errors:\n", stderr); - for (const auto &error : parser.gerrors) + for (const auto &error : parser.global_errors) fprintf(stderr, "- %s\n", error.c_str()); } if (!parser.warns.empty()) { -- cgit v1.2.3