1
0
Fork 0

stop printing `connection class corrupted` in arangosh (#7180)

when just starting the arangosh without a connection to a server
and running code such as `require("internal")`, the shell always
printed "connection class corrupted", which is somewhat misleading.
just don't print this error here, as it is useless
This commit is contained in:
Jan 2018-10-31 18:46:47 +01:00 committed by GitHub
parent 4bc646f207
commit dc03e370f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,9 @@ if (typeof internal.arango !== 'undefined') {
get(target, name) {
if (!target.hasOwnProperty(name) && target[name] === undefined && typeof name === 'string') {
// unknown collection, try re-populating the cache
db._collections();
try {
db._collections();
} catch (err) {}
}
return target[name];
},