Skip to content

Commit

Permalink
[Minor] Fix log message
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jul 1, 2023
1 parent 9ffe99e commit c241116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libutil/cxx/file_util.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ auto raii_file::create(const char *fname, int flags, int perms) -> tl::expected<
#endif

if (fname == nullptr) {
return tl::make_unexpected(error {"cannot open file; filename is nullptr", EINVAL, error_category::CRITICAL});
return tl::make_unexpected(error {"cannot create file; filename is nullptr", EINVAL, error_category::CRITICAL});
}

auto fd = ::open(fname, oflags, perms);
Expand Down Expand Up @@ -239,7 +239,7 @@ auto raii_file_sink::create(const char *fname, int flags, int perms,
const char *suffix) -> tl::expected<raii_file_sink, error>
{
if (!fname || !suffix) {
return tl::make_unexpected(error {"cannot open file; filename is nullptr", EINVAL, error_category::CRITICAL});
return tl::make_unexpected(error {"cannot create file; filename is nullptr", EINVAL, error_category::CRITICAL});
}

auto tmp_fname = fmt::format("{}.{}", fname, suffix);
Expand Down

0 comments on commit c241116

Please sign in to comment.