diff options
author | Clint Adams <clint@users.sourceforge.net> | 2004-03-16 19:41:00 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2004-03-16 19:41:00 +0000 |
commit | 851c3882edc21ce0df065321ef5903e89137710e (patch) | |
tree | d6f06769323c0f648abc07138dd25741b8fbedb6 /Src/Modules/pcre.c | |
parent | befd90b84787b2508ee32549f7a38859d0056b55 (diff) | |
download | zsh-851c3882edc21ce0df065321ef5903e89137710e.tar.gz zsh-851c3882edc21ce0df065321ef5903e89137710e.tar.xz zsh-851c3882edc21ce0df065321ef5903e89137710e.zip |
* 19640: Src/Modules/pcre.c: improve error reporting a bit.
Diffstat (limited to 'Src/Modules/pcre.c')
-rw-r--r-- | Src/Modules/pcre.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c index 030d1c78a..41c37b03c 100644 --- a/Src/Modules/pcre.c +++ b/Src/Modules/pcre.c @@ -74,8 +74,8 @@ bin_pcre_study(char *nam, char **args, Options ops, int func) if (pcre_pattern == NULL) { - zwarnnam(nam, "no pattern has been compiled for study: %s", - pcre_error, 0); + zwarnnam(nam, "no pattern has been compiled for study", + NULL, 0); return 1; } @@ -112,9 +112,9 @@ bin_pcre_match(char *nam, char **args, Options ops, int func) } } - if (pcre_fullinfo(pcre_pattern, pcre_hints, PCRE_INFO_CAPTURECOUNT, &capcount)) + if (ret = pcre_fullinfo(pcre_pattern, pcre_hints, PCRE_INFO_CAPTURECOUNT, &capcount)) { - zwarnnam(nam, "error in fullinfo", NULL, 0); + zwarnnam(nam, "error %d in fullinfo", NULL, ret); return 1; } |