Kouhei Sutou
null+****@clear*****
Mon Oct 14 13:52:47 JST 2013
Kouhei Sutou 2013-10-14 13:52:47 +0900 (Mon, 14 Oct 2013) New Revision: f4b16a2ae1e892d3a46947d90eb720f9546ecf56 https://github.com/groonga/groonga/commit/f4b16a2ae1e892d3a46947d90eb720f9546ecf56 Message: http: don't clear output on error Because CLI don't clear it. GQTP returns the output as error message because GQTP can't return both output and error message. Modified files: src/groonga.c Modified: src/groonga.c (+0 -1) =================================================================== --- src/groonga.c 2013-10-14 13:44:24 +0900 (78819ca) +++ src/groonga.c 2013-10-14 13:52:47 +0900 (fecf8ce) @@ -670,7 +670,6 @@ h_output(grn_ctx *ctx, int flags, void *arg) GRN_TEXT_LEN(&head) + GRN_TEXT_LEN(outbuf) + GRN_TEXT_LEN(&foot)); GRN_TEXT_PUTS(ctx, body, "\r\n\r\n"); } else { - GRN_BULK_REWIND(outbuf); output_envelope(ctx, expr_rc, &head, outbuf, &foot); switch (expr_rc) { case GRN_INVALID_ARGUMENT : -------------- next part -------------- HTML����������������������������... Download