mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
Resolve syuilo#5548 (#5607)
This commit is contained in:
parent
686c518966
commit
1a98dafc27
1 changed files with 7 additions and 0 deletions
|
@ -51,6 +51,13 @@ export default class Resolver {
|
||||||
Accept: 'application/activity+json, application/ld+json'
|
Accept: 'application/activity+json, application/ld+json'
|
||||||
},
|
},
|
||||||
json: true
|
json: true
|
||||||
|
}).catch(e => {
|
||||||
|
const message = `${e.name}: ${e.message ? e.message.substr(0, 200) : undefined}, url=${value}`;
|
||||||
|
throw {
|
||||||
|
name: e.name,
|
||||||
|
statusCode: e.statusCode,
|
||||||
|
message,
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
if (object == null || (
|
if (object == null || (
|
||||||
|
|
Loading…
Reference in a new issue