mirror of https://gitee.com/bigwinds/arangodb
better error messages
This commit is contained in:
parent
79cda92a2a
commit
802180e2f2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue