1
0
Fork 0

better error messages

This commit is contained in:
jsteemann 2017-05-22 18:00:20 +02:00
parent 79cda92a2a
commit 802180e2f2
1 changed files with 4 additions and 2 deletions

View File

@ -378,8 +378,10 @@ void Query::registerWarning(int code, char const* details) {
if (DoFailOnWarning) {
// make an error from each warning if requested
// note: this will throw!
registerErrorCustom(code, details);
if (details == nullptr) {
THROW_ARANGO_EXCEPTION(code);
}
THROW_ARANGO_EXCEPTION_MESSAGE(code, details);
}
if (_warnings.size() > _maxWarningCount) {