diff options
Diffstat (limited to 'lib/Regex.cc')
-rw-r--r-- | lib/Regex.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Regex.cc b/lib/Regex.cc index 7fd9741..258d378 100644 --- a/lib/Regex.cc +++ b/lib/Regex.cc @@ -23,9 +23,9 @@ Regex::Regex(const Regex & regex) : pattern(Base::strdup(pattern)) { int r; if ((r = regcomp(&preg, pattern, cflags | REG_NOSUB))) { - std::cerr << "Error in regcomp:"; + printm(M_ERROR, _("Error in regcomp:")); regerror(r, &preg, t, sizeof(t)); - std::cerr << t << std::endl; + printm(M_ERROR, "%s\n", t); throw GeneralException(String(_("Regex \"")) + pattern + _("\" failed to compile: ") + t + "\n"); } } |