Index: src/libchcore/ErrorCodes.h =================================================================== diff -u -N -rc1f7af79a52133c6d4b14944c3370288be7f5af5 -r975de2f6cd1f6e4c912daa021c6d2674dd5646db --- src/libchcore/ErrorCodes.h (.../ErrorCodes.h) (revision c1f7af79a52133c6d4b14944c3370288be7f5af5) +++ src/libchcore/ErrorCodes.h (.../ErrorCodes.h) (revision 975de2f6cd1f6e4c912daa021c6d2674dd5646db) @@ -54,6 +54,7 @@ eErr_MutexAlreadyLocked = 1011, // string errors (1500+) + eErr_InvalidRegex = 1500, // Task definition errors (2000+) eErr_UnsupportedVersion = 2000, Index: src/libchcore/TStringPattern.cpp =================================================================== diff -u -N -r23ff4021e13382a5e6da1f88e5fe173f2cffc743 -r975de2f6cd1f6e4c912daa021c6d2674dd5646db --- src/libchcore/TStringPattern.cpp (.../TStringPattern.cpp) (revision 23ff4021e13382a5e6da1f88e5fe173f2cffc743) +++ src/libchcore/TStringPattern.cpp (.../TStringPattern.cpp) (revision 975de2f6cd1f6e4c912daa021c6d2674dd5646db) @@ -174,7 +174,7 @@ strErr += ca2w; - throw TCoreException(eErr_InvalidData, strErr.c_str(), LOCATION); + throw TCoreException(eErr_InvalidRegex, strErr.c_str(), LOCATION); } }