From: Vsevolod Stakhov Date: Sat, 1 Jul 2023 19:02:35 +0000 (+0100) Subject: [Minor] Fix log message X-Git-Tag: 3.6~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c241116bcfed5715027826bd766ce501ccb4dfcb;p=thirdparty%2Frspamd.git [Minor] Fix log message --- diff --git a/src/libutil/cxx/file_util.cxx b/src/libutil/cxx/file_util.cxx index 3176833705..bc9028aa8a 100644 --- a/src/libutil/cxx/file_util.cxx +++ b/src/libutil/cxx/file_util.cxx @@ -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); @@ -239,7 +239,7 @@ auto raii_file_sink::create(const char *fname, int flags, int perms, const char *suffix) -> tl::expected { 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);