Explorar el Código

[Minor] Fix log message

tags/3.6
Vsevolod Stakhov hace 11 meses
padre
commit
c241116bcf
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/libutil/cxx/file_util.cxx

+ 2
- 2
src/libutil/cxx/file_util.cxx Ver fichero

@@ -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);

Cargando…
Cancelar
Guardar