Susumu Yata
null+****@clear*****
Wed Jul 13 15:50:56 JST 2016
Susumu Yata 2016-07-13 15:50:56 +0900 (Wed, 13 Jul 2016) New Revision: 551e2162e443e9c9c3b656b93f8504e169913817 https://github.com/groonga/groonga/commit/551e2162e443e9c9c3b656b93f8504e169913817 Message: Fix error messages Modified files: lib/db.c test/unit/core/test-table-patricia-trie-cursor.c Modified: lib/db.c (+2 -2) =================================================================== --- lib/db.c 2016-07-13 15:28:00 +0900 (f8f1cb8) +++ lib/db.c 2016-07-13 15:50:56 +0900 (554bbf6) @@ -2452,12 +2452,12 @@ grn_table_cursor_open(grn_ctx *ctx, grn_obj *table, "can't use negative offset with GRN_CURSOR_PREFIX: %d", offset); } else if (offset != 0 && offset >= table_size) { ERR(GRN_TOO_LARGE_OFFSET, - "offset is rather than table size: offset:%d, table_size:%d", + "offset is not less than table size: offset:%d, table_size:%d", offset, table_size); } else { if (limit < -1) { ERR(GRN_TOO_SMALL_LIMIT, - "can't use small limit rather than -1 with GRN_CURSOR_PREFIX: %d", + "can't use smaller limit than -1 with GRN_CURSOR_PREFIX: %d", limit); } else if (limit == -1) { limit = table_size; Modified: test/unit/core/test-table-patricia-trie-cursor.c (+2 -2) =================================================================== --- test/unit/core/test-table-patricia-trie-cursor.c 2016-07-13 15:28:00 +0900 (4145c32) +++ test/unit/core/test-table-patricia-trie-cursor.c 2016-07-13 15:50:56 +0900 (ab661b3) @@ -221,11 +221,11 @@ data_prefix_error(void) -1, -1); ADD_DATA("large offset", GRN_TOO_LARGE_OFFSET, - "offset is rather than table size: offset:100, table_size:8", + "offset is not less than table size: offset:100, table_size:8", 100, -1); ADD_DATA("negative limit", GRN_TOO_SMALL_LIMIT, - "can't use small limit rather than -1 with GRN_CURSOR_PREFIX: -2", + "can't use smaller limit than -1 with GRN_CURSOR_PREFIX: -2", 0, -2); #undef ADD_DATA -------------- next part -------------- HTML����������������������������... 下載