From 61cff78b4315e8ff3a5266ce1a850afd1e6e0402 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Thu, 17 Sep 2020 21:05:47 +0900
Subject: [PATCH] chore: better error text

---
 src/client/components/mfm.ts           | 2 +-
 src/misc/gen-id.ts                     | 2 +-
 src/remote/activitypub/kernel/index.ts | 2 +-
 src/remote/activitypub/resolver.ts     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/client/components/mfm.ts b/src/client/components/mfm.ts
index 122368f74..1dc878038 100644
--- a/src/client/components/mfm.ts
+++ b/src/client/components/mfm.ts
@@ -279,7 +279,7 @@ export default Vue.component('misskey-flavored-markdown', {
 				}
 
 				default: {
-					console.log('unknown ast type:', token.node.type);
+					console.log('unrecognized ast type:', token.node.type);
 
 					return [];
 				}
diff --git a/src/misc/gen-id.ts b/src/misc/gen-id.ts
index 7779e2db1..8562767bf 100644
--- a/src/misc/gen-id.ts
+++ b/src/misc/gen-id.ts
@@ -16,6 +16,6 @@ export function genId(date?: Date): string {
 		case 'meidg': return genMeidg(date);
 		case 'ulid': return ulid(date.getTime());
 		case 'objectid': return genObjectId(date);
-		default: throw new Error('unknown id generation method');
+		default: throw new Error('unrecognized id generation method');
 	}
 }
diff --git a/src/remote/activitypub/kernel/index.ts b/src/remote/activitypub/kernel/index.ts
index abf5a436c..ff75f8029 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 3847ea92c..f4bf8f94f 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}`);
 		}
 	}