]> 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 12:16:14 +0000 (15:16 +0300)
The error is in istream, not in fs.

src/doveadm/doveadm-fs.c

index e785844d9924285aa49d0f2b75b6bdb8cbc19c19..a91d6293d2e858384b05fe2b115a834a0f390789 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);