summaryrefslogtreecommitdiff
path: root/src/remote/activitypub
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-09-17 21:05:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-09-17 21:05:47 +0900
commitf104e9b6cce012cfcaeba6f75a4990062b03a876 (patch)
tree4c87a6774b3850f51998347eedc138f08a99b7f3 /src/remote/activitypub
parentfix(client): Fix #6698 (diff)
downloadsharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.tar.gz
sharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.tar.bz2
sharkey-f104e9b6cce012cfcaeba6f75a4990062b03a876.zip
chore: better error text
Diffstat (limited to 'src/remote/activitypub')
-rw-r--r--src/remote/activitypub/kernel/index.ts2
-rw-r--r--src/remote/activitypub/resolver.ts2
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}`);
}
}