mirror of https://gitee.com/bigwinds/arangodb
Fixed error num comparison (#6941)
This commit is contained in:
parent
45b812c668
commit
4bcb3b755c
|
@ -489,7 +489,7 @@ function MovingShardsWithViewSuite (options) {
|
|||
// server.
|
||||
|
||||
if (e instanceof arangodb.ArangoError
|
||||
&& e.errorNum === internal.ERROR_ARANGO_DATA_SOURCE_NOT_FOUND) {
|
||||
&& e.errorNum === internal.ERROR_ARANGO_DATA_SOURCE_NOT_FOUND.code) {
|
||||
console.info(`Exception during getViewServersPerShard(): ${e}`);
|
||||
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue