mirror of https://gitee.com/bigwinds/arangodb
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:
parent
4bc646f207
commit
dc03e370f9
|
@ -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
|
||||
try {
|
||||
db._collections();
|
||||
} catch (err) {}
|
||||
}
|
||||
return target[name];
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue