Better error log of WebFinger

This commit is contained in:
syuilo 2019-02-04 09:06:13 +09:00
parent b4a3e5aa4f
commit 11101a6aca
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -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;