From f104e9b6cce012cfcaeba6f75a4990062b03a876 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 17 Sep 2020 21:05:47 +0900 Subject: chore: better error text --- src/remote/activitypub/kernel/index.ts | 2 +- src/remote/activitypub/resolver.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/remote/activitypub') diff --git a/src/remote/activitypub/kernel/index.ts b/src/remote/activitypub/kernel/index.ts index abf5a436c0..ff75f80299 100644 --- a/src/remote/activitypub/kernel/index.ts +++ b/src/remote/activitypub/kernel/index.ts @@ -66,6 +66,6 @@ async function performOneActivity(actor: IRemoteUser, activity: IObject): Promis } else if (isFlag(activity)) { await flag(actor, activity); } else { - apLogger.warn(`unknown activity type: ${(activity as any).type}`); + apLogger.warn(`unrecognized activity type: ${(activity as any).type}`); } } diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts index 3847ea92ca..f4bf8f94f9 100644 --- a/src/remote/activitypub/resolver.ts +++ b/src/remote/activitypub/resolver.ts @@ -20,7 +20,7 @@ export default class Resolver { if (isCollectionOrOrderedCollection(collection)) { return collection; } else { - throw new Error(`unknown collection type: ${collection.type}`); + throw new Error(`unrecognized collection type: ${collection.type}`); } } -- cgit v1.2.3-freya