From caf1d4333148632ae2bbfde7ac78a3d69984d891 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Tue, 15 Oct 2024 12:52:45 +0200 Subject: [PATCH] Improve error message --- src/string_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_utils.cpp b/src/string_utils.cpp index 04e5395..181fb22 100644 --- a/src/string_utils.cpp +++ b/src/string_utils.cpp @@ -83,7 +83,7 @@ map sc::parse_ini_file(const string& path, bool ignore_sections) string prefix; string line; ifstream file {path}; - if (!file) throw runtime_error {string {"could not open "} + path}; + if (!file) throw runtime_error {string {"could not open: "} + path}; while (getline(file, line)) { if (line[0] == '#') continue; // ignore comments if (line[0] == '[') {