]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm fs get: Fixed logging error messages.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 21 Sep 2016 09:19:18 +0000 (12:19 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 21 Sep 2016 09:19:30 +0000 (12:19 +0300)
The error is in istream, not in fs.

src/doveadm/doveadm-fs.c

index 8bc26a6f7b6a440b33622426bc7c0920e3bf4011..5566438c89c58d73be8e5facd7d9eea58e49e7b6 100644 (file)
@@ -78,11 +78,11 @@ static void cmd_fs_get(int argc, char *argv[])
        i_assert(ret == -1);
        if (input->stream_errno == ENOENT) {
                i_error("%s doesn't exist: %s", fs_file_path(file),
-                       fs_file_last_error(file));
+                       i_stream_get_error(input));
                doveadm_exit_code = DOVEADM_EX_NOTFOUND;
        } else if (input->stream_errno != 0) {
                i_error("read(%s) failed: %s", fs_file_path(file),
-                       fs_file_last_error(file));
+                       i_stream_get_error(input));
                doveadm_exit_code = EX_TEMPFAIL;
        }
        i_stream_unref(&input);