From 458180da5e61887cd9f820e573f307d0a640128d Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Sat, 11 May 2024 14:37:50 -0400 Subject: Fix bugs in #37 Fix error handling dropping errors Fix error handling segfaults Improve error messages --- include/openvic-dataloader/Parser.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/openvic-dataloader/Parser.hpp') diff --git a/include/openvic-dataloader/Parser.hpp b/include/openvic-dataloader/Parser.hpp index c1f266b..b885f3d 100644 --- a/include/openvic-dataloader/Parser.hpp +++ b/include/openvic-dataloader/Parser.hpp @@ -22,6 +22,8 @@ namespace ovdl::detail { std::string_view get_file_path() const; protected: + void set_file_path(std::string_view path); + std::reference_wrapper _error_stream; std::string _file_path; bool _has_fatal_error = false; -- cgit v1.2.3-56-ga3b1