From 5a84e9aeb2e28ab1ad2c2f8d1ccdcb5a6b59f497 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 21 May 2014 14:27:04 +0800 Subject: [PATCH] update pcre match error message --- src/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node.c b/src/node.c index 9741e40..22b4195 100644 --- a/src/node.c +++ b/src/node.c @@ -280,11 +280,11 @@ node * r3_tree_matchl(const node * n, char * path, int path_len, match_entry * e if (rc < 0) { switch(rc) { - case PCRE_ERROR_NOMATCH: printf("No match\n"); break; + case PCRE_ERROR_NOMATCH: printf("pcre: no match\n"); break; /* Handle other special cases if you like */ - default: printf("Matching error %d\n", rc); break; + default: printf("pcre matching error '%d' on pattern '%s'\n", rc, n->combined_pattern); break; } // does not match all edges, return NULL; return NULL;