Skip to content

Commit

Permalink
doveadm fs get: Fixed logging error messages.
Browse files Browse the repository at this point in the history
The error is in istream, not in fs.
  • Loading branch information
sirainen committed Sep 21, 2016
1 parent 9a6fe61 commit 4c9caab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doveadm/doveadm-fs.c
Expand Up @@ -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);
Expand Down

0 comments on commit 4c9caab

Please sign in to comment.