From defa124a8994af33fa593b45b6ee0832eb8484b4 Mon Sep 17 00:00:00 2001 From: Nedeljko Stefanovic Date: Tue, 3 Jun 2025 22:10:46 +0000 Subject: [PATCH] Bugfix: The exception has to be of type std::runtime_error, not std::string. --- utils/idbdatafile/BufferedFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/idbdatafile/BufferedFile.cpp b/utils/idbdatafile/BufferedFile.cpp index 75f284d7f..c535828ec 100644 --- a/utils/idbdatafile/BufferedFile.cpp +++ b/utils/idbdatafile/BufferedFile.cpp @@ -37,7 +37,7 @@ BufferedFile::BufferedFile(const char* fname, const char* mode, unsigned opts) { static string message = "D 35 CAL0002: Failed to open file: "; - throw(message+fname+", exception: "+strerror(err)); + throw std::runtime_error(message+fname+", exception: "+strerror(err)); } applyOptions(opts);