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) {
|
if (DoFailOnWarning) {
|
||||||
// make an error from each warning if requested
|
// make an error from each warning if requested
|
||||||
// note: this will throw!
|
if (details == nullptr) {
|
||||||
registerErrorCustom(code, details);
|
THROW_ARANGO_EXCEPTION(code);
|
||||||
|
}
|
||||||
|
THROW_ARANGO_EXCEPTION_MESSAGE(code, details);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_warnings.size() > _maxWarningCount) {
|
if (_warnings.size() > _maxWarningCount) {
|
||||||
|
|
Loading…
Reference in New Issue