i_error("notify: read() unexpectedly returned EOF");
notify_connection_deinit(&conn);
} else if (conn->input->stream_errno != 0) {
- i_error("notify: read() failed: %m");
+ i_error("notify: read() failed: %s",
+ i_stream_get_error(conn->input));
notify_connection_deinit(&conn);
}
}
if (message_get_header_size(input, &hdr_size, &has_nuls) < 0) {
errno = input->stream_errno;
mail_storage_set_critical(mail->box->storage,
- "read(%s) failed: %m", i_stream_get_name(mail_input));
+ "read(%s) failed: %s", i_stream_get_name(mail_input),
+ i_stream_get_error(mail_input));
i_stream_unref(&input);
return -1;
}
break;
if (input->stream_errno != 0) {
ctx->error = p_strdup_printf(ctx->parser_pool,
- "read() failed: %m");
+ "read(%s) failed: %s", i_stream_get_name(input),
+ i_stream_get_error(input));
} else if (input->v_offset == 0) {
ctx->error = p_strdup_printf(ctx->parser_pool,
"read(%s) disconnected before receiving any data",
}
if (ctx->input->stream_errno != 0) {
mail_storage_set_critical(ctx->index_ctx->box->storage,
- "read(%s) failed: %m", i_stream_get_name(ctx->input));
+ "read(%s) failed: %s", i_stream_get_name(ctx->input),
+ i_stream_get_error(ctx->input));
}
ARG_SET_RESULT(arg, ret);
search_header, &hdr_ctx);
if (input->stream_errno != 0) {
mail_storage_set_critical(ctx->box->storage,
- "read(%s) failed: %m", i_stream_get_name(input));
+ "read(%s) failed: %s",
+ i_stream_get_name(input),
+ i_stream_get_error(input));
failed = TRUE;
}
}
if (ret == 0)
return 0;
if (ctx->input->stream_errno != 0) {
- i_error("read(%s) failed: %m", i_stream_get_name(ctx->input));
+ i_error("read(%s) failed: %s", i_stream_get_name(ctx->input),
+ i_stream_get_error(ctx->input));
ctx->failed = TRUE;
return -1;
}
if (input->stream_errno != 0) {
mail_storage_set_critical(ctx->transaction->box->storage,
- "copy: i_stream_read() failed: %m");
+ "copy: i_stream_read(%s) failed: %s",
+ i_stream_get_name(input), i_stream_get_error(input));
return -1;
}
return 0;
i_stream_skip(value->value_stream, size);
}
if (value->value_stream->stream_errno != 0) {
- mail_storage_set_critical(storage, "read(%s) failed: %m",
- i_stream_get_name(value->value_stream));
+ mail_storage_set_critical(storage, "read(%s) failed: %s",
+ i_stream_get_name(value->value_stream),
+ i_stream_get_error(value->value_stream));
return -1;
}
i_assert(value->value_stream->eof);
}
}
if (ctx->input->stream_errno != 0) {
- i_error("indexer read() failed: %m");
+ i_error("indexer read(%s) failed: %s",
+ i_stream_get_name(ctx->input),
+ i_stream_get_error(ctx->input));
return -1;
}
if (ctx->input->eof) {
content->extensions = (const void *)(args+1);
}
if (input->stream_errno != 0) {
- i_error("parser script read() failed: %m");
+ i_error("parser script read(%s) failed: %s", path,
+ i_stream_get_error(input));
ret = -1;
} else if (!eof_seen) {
if (input->v_offset == 0)