From: Timo Sirainen Date: Wed, 21 Sep 2016 09:19:18 +0000 (+0300) Subject: doveadm fs get: Fixed logging error messages. X-Git-Tag: 2.3.0.rc1~2996 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c9caab4525a8d59f76e6943f99a73e4dc6e75f5;p=thirdparty%2Fdovecot%2Fcore.git doveadm fs get: Fixed logging error messages. The error is in istream, not in fs. --- diff --git a/src/doveadm/doveadm-fs.c b/src/doveadm/doveadm-fs.c index 8bc26a6f7b..5566438c89 100644 --- a/src/doveadm/doveadm-fs.c +++ b/src/doveadm/doveadm-fs.c @@ -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);