summaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-07-01 20:02:35 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-07-01 20:02:35 +0100
commitc241116bcfed5715027826bd766ce501ccb4dfcb (patch)
treeb167f09bf66de4363291e9963ee8be65df9ea936 /src/libutil
parent9ffe99ee139743c3ea562d3b7cd999bdab584aa6 (diff)
downloadrspamd-c241116bcfed5715027826bd766ce501ccb4dfcb.tar.gz
rspamd-c241116bcfed5715027826bd766ce501ccb4dfcb.zip
[Minor] Fix log message
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/cxx/file_util.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/cxx/file_util.cxx b/src/libutil/cxx/file_util.cxx
index 317683370..bc9028aa8 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<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);