mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 14:51:31 -07:00
Better error log of WebFinger
This commit is contained in:
parent
5b744e2c6b
commit
3b2734b1cd
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ async function resolveSelf(acctLower: string) {
|
|||
});
|
||||
const self = finger.links.find(link => link.rel && link.rel.toLowerCase() === 'self');
|
||||
if (!self) {
|
||||
logger.error(`Failed to WebFinger for ${chalk.yellow(acctLower)}: self link not found`);
|
||||
throw new Error('self link not found');
|
||||
}
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue