From cba0dd5e178c08842100f45c840e193032f21551 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Mon, 24 Sep 2018 07:35:39 +0900 Subject: [PATCH] Fix AP request error message is to long (#2760) --- src/remote/activitypub/resolver.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts index 9bbe474d35..e1c12e7e62 100644 --- a/src/remote/activitypub/resolver.ts +++ b/src/remote/activitypub/resolver.ts @@ -55,6 +55,8 @@ export default class Resolver { Accept: 'application/activity+json, application/ld+json' }, json: true + }).catch(e => { + throw new Error(`request error: ${e.message}`); }); if (object === null || (