From e2e105eee7426cb75568f4954373e11c77f09d04 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 12 Oct 2010 14:20:23 +0800 Subject: add error printf --- utils/storage/export_interpolation.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/storage/export_interpolation.cpp') diff --git a/utils/storage/export_interpolation.cpp b/utils/storage/export_interpolation.cpp index cf102a1..c5fa790 100644 --- a/utils/storage/export_interpolation.cpp +++ b/utils/storage/export_interpolation.cpp @@ -155,6 +155,7 @@ static const char * special_token_to_string(phrase_token_t token){ return pair->string; } + fprintf(stderr, "error: unknown token:%d.\n", token); return NULL; } @@ -169,8 +170,10 @@ char * token_to_string(FacadePhraseIndex * phrase_index, phrase_token_t token) { } int result = phrase_index->get_phrase_item(token, item); - if (result != ERROR_OK) + if (result != ERROR_OK) { + fprintf(stderr, "error: unknown token:%d.\n", token); return NULL; + } item.get_phrase_string(buffer); guint8 length = item.get_phrase_length(); -- cgit