Skip to content
Browse files

trunk/lregex.c: give more informative and easier to search for errors…

… when regcomp(3) fails.
  • Loading branch information...
1 parent fee2a9c commit bc2f4db9ed96bacfef295956548c7e4492594368 Elliott Hughes committed Jun 1, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lregex.c
View
2 lregex.c
@@ -324,7 +324,7 @@ static regex_t* compileRegex (const char* const regexp, const char* const flags)
{
char errmsg[256];
regerror (errcode, result, errmsg, 256);
- error (WARNING, "%s", errmsg);
+ error (WARNING, "regcomp %s: %s", regexp, errmsg);
regfree (result);
eFree (result);
result = NULL;

0 comments on commit bc2f4db

Please sign in to comment.
Something went wrong with that request. Please try again.