Skip to content

Commit

Permalink
correctly raise error
Browse files Browse the repository at this point in the history
Merge branch 'main' into cpp11

# Conflicts:
#	paws.common/src/ini_utils.cpp
  • Loading branch information
DyfanJones committed Jan 2, 2025
2 parents 4871241 + d2f9d8a commit 348e6e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions paws.common/src/ini_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ std::vector<std::string> scan_ini_file(const std::string &filename)
FILE *file = fopen(filename.c_str(), "r");
if (!file)
{
perror("Unable to open file");
return {}; // Return an empty vector on failure
Rcpp::stop("Can't load the INI file: " + filename);
}

std::vector<std::string> lines;
Expand Down

0 comments on commit 348e6e4

Please sign in to comment.