squelch vault missing error
This commit is contained in:
@@ -131,12 +131,12 @@ async function _discoverVaults(owner) {
|
||||
console.error(`bad vault version ${version}`)
|
||||
}
|
||||
catch (e) {
|
||||
if( e.value==='0x' && e.code==='BAD_DATA' )
|
||||
if( e.value==='0x' && e.code==='BAD_DATA' || e.revert===null && e.code==='CALL_EXCEPTION' )
|
||||
console.log(`no vault ${num} at ${addr}`)
|
||||
else
|
||||
console.error(`routeFinder failed`, e)
|
||||
console.error(`discoverVaults failed`, e)
|
||||
}
|
||||
if( s.account == owner ) { // double-check the account since it could have changed during our await
|
||||
if( s.account === owner ) { // double-check the account since it could have changed during our await
|
||||
s.vaults = result
|
||||
if( pendingOrders.length )
|
||||
if( result.length )
|
||||
|
||||
Reference in New Issue
Block a user