Skip to content

Commit

Permalink
create_snapshot-sortdb_wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Oct 19, 2023
1 parent 39fdf93 commit af16b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/limestone/sortdb_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class sortdb_wrapper {
}
if (Status status = DB::Open(options, workdir_path_.string(), &sortdb_); !status.ok()) {
LOG_LP(ERROR) << "Unable to open/create database working files, status = " << status.ToString();
std::abort();
throw std::runtime_error("I/O error");
}
}

Expand Down Expand Up @@ -124,7 +124,7 @@ class sortdb_wrapper {
boost::filesystem::remove_all(workdir_path_);
} else {
LOG_LP(ERROR) << workdir_path_.string() << " is not a directory";
std::abort();
throw std::runtime_error("I/O error");

Check failure on line 127 in src/limestone/sortdb_wrapper.h

View workflow job for this annotation

GitHub Actions / Clang-Tidy

clang-diagnostic-exceptions

'clear_directory' has a non-throwing exception specification but can still throw
}
}
}
Expand Down

0 comments on commit af16b5c

Please sign in to comment.