Kouhei Sutou
null+****@clear*****
Wed Nov 7 15:34:57 JST 2012
Kouhei Sutou 2012-11-07 15:34:57 +0900 (Wed, 07 Nov 2012) New Revision: 5dfdf54888ac97c12b89f3ec9534ba4e4fef710c https://github.com/groonga/groonga/commit/5dfdf54888ac97c12b89f3ec9534ba4e4fef710c Log: Report error reason on error Modified files: lib/output.c Modified: lib/output.c (+5 -1) =================================================================== --- lib/output.c 2012-11-07 15:32:26 +0900 (d35dd95) +++ lib/output.c 2012-11-07 15:34:57 +0900 (35212cf) @@ -1136,7 +1136,11 @@ grn_output_table_record_by_expression(grn_ctx *ctx, grn_obj *outbuf, { grn_obj *result; result = grn_expr_exec(ctx, expression, 0); - grn_output_obj(ctx, outbuf, output_type, result, NULL); + if (result) { + grn_output_obj(ctx, outbuf, output_type, result, NULL); + } else { + grn_output_cstr(ctx, outbuf, output_type, ctx->errbuf); + } } static inline void -------------- next part -------------- HTML����������������������������...Download