Skip to content

Commit

Permalink
fwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Oct 19, 2023
1 parent 697c74b commit 93b4d86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/limestone/log_entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class log_entry {
int ret = fputc(value, out);
if (ret == EOF) {
LOG_LP(ERROR) << "fputc failed, errno = " << errno;
std::abort();
throw std::runtime_error("I/O error");
}
}
static void write_uint32le(FILE* out, const std::uint32_t value) {
Expand All @@ -269,7 +269,7 @@ class log_entry {
auto ret = fwrite(buf, len, 1, out);
if (ret != 1) {
LOG_LP(ERROR) << "fwrite failed, errno = " << errno;
std::abort();
throw std::runtime_error("I/O error");
}
}
};
Expand Down

0 comments on commit 93b4d86

Please sign in to comment.