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);
postMessage(account);
} 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(
accountAddress: string,
metaUrl: string,
token: string
token: string,
): Promise<any> {
const userKey = await User.toKey(add0x(accountAddress));