projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
774f035
)
add error printf
author
Peng Wu
<alexepico@gmail.com>
Tue, 12 Oct 2010 06:20:23 +0000
(14:20 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Tue, 12 Oct 2010 06:20:23 +0000
(14:20 +0800)
utils/storage/export_interpolation.cpp
patch
|
blob
|
history
diff --git
a/utils/storage/export_interpolation.cpp
b/utils/storage/export_interpolation.cpp
index
cf102a1
..
c5fa790
100644
(file)
--- 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();