Bump to version 1.22.1
[platform/upstream/busybox.git] / libbb / xregcomp.c
index abfa35f..344028f 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) many different people.
  * If you wrote this, please acknowledge your work.
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
 #include "libbb.h"
@@ -27,6 +27,6 @@ void FAST_FUNC xregcomp(regex_t *preg, const char *regex, int cflags)
 {
        char *errmsg = regcomp_or_errmsg(preg, regex, cflags);
        if (errmsg) {
-               bb_error_msg_and_die("xregcomp: %s", errmsg);
+               bb_error_msg_and_die("bad regex '%s': %s", regex, errmsg);
        }
 }