catch account collector error
This commit is contained in:
parent
45f2bc9ea8
commit
92a967a23d
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user