diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-09-17 21:05:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-09-17 21:05:47 +0900 |
| commit | f104e9b6cce012cfcaeba6f75a4990062b03a876 (patch) | |
| tree | 4c87a6774b3850f51998347eedc138f08a99b7f3 /src/remote | |
| parent | fix(client): Fix #6698 (diff) | |
| download | sharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.tar.gz sharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.tar.bz2 sharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.zip | |
chore: better error text
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/kernel/index.ts | 2 | ||||
| -rw-r--r-- | src/remote/activitypub/resolver.ts | 2 |
2 files changed, 2 insertions, 2 deletions
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}`); } } |