catch account collector error

This commit is contained in:
Blair Vanderlugt 2021-08-03 10:46:08 -07:00
parent 45f2bc9ea8
commit 92a967a23d

View File

@ -20,7 +20,7 @@ addEventListener('message', async ({ data }) => {
const account = await getAccountByAddress(accountAddress, data.url, data.token); const account = await getAccountByAddress(accountAddress, data.url, data.token);
postMessage(account); postMessage(account);
} catch (error) { } catch (error) {
console.log(`ERROR we failed to get account {accountAddress}`, error); console.log(`ERROR we failed to get account ${accountAddress}`, error);
} }
} }
} }
@ -29,7 +29,7 @@ addEventListener('message', async ({ data }) => {
async function getAccountByAddress( async function getAccountByAddress(
accountAddress: string, accountAddress: string,
metaUrl: string, metaUrl: string,
token: string token: string,
): Promise<any> { ): Promise<any> {
const userKey = await User.toKey(add0x(accountAddress)); const userKey = await User.toKey(add0x(accountAddress));