Skip to content
Snippets Groups Projects
Commit f104e9b6 authored by syuilo's avatar syuilo
Browse files

chore: better error text

parent e29b5c23
No related branches found
No related tags found
No related merge requests found
...@@ -279,7 +279,7 @@ export default Vue.component('misskey-flavored-markdown', { ...@@ -279,7 +279,7 @@ export default Vue.component('misskey-flavored-markdown', {
} }
default: { default: {
console.log('unknown ast type:', token.node.type); console.log('unrecognized ast type:', token.node.type);
return []; return [];
} }
......
...@@ -16,6 +16,6 @@ export function genId(date?: Date): string { ...@@ -16,6 +16,6 @@ export function genId(date?: Date): string {
case 'meidg': return genMeidg(date); case 'meidg': return genMeidg(date);
case 'ulid': return ulid(date.getTime()); case 'ulid': return ulid(date.getTime());
case 'objectid': return genObjectId(date); case 'objectid': return genObjectId(date);
default: throw new Error('unknown id generation method'); default: throw new Error('unrecognized id generation method');
} }
} }
...@@ -66,6 +66,6 @@ async function performOneActivity(actor: IRemoteUser, activity: IObject): Promis ...@@ -66,6 +66,6 @@ async function performOneActivity(actor: IRemoteUser, activity: IObject): Promis
} else if (isFlag(activity)) { } else if (isFlag(activity)) {
await flag(actor, activity); await flag(actor, activity);
} else { } else {
apLogger.warn(`unknown activity type: ${(activity as any).type}`); apLogger.warn(`unrecognized activity type: ${(activity as any).type}`);
} }
} }
...@@ -20,7 +20,7 @@ export default class Resolver { ...@@ -20,7 +20,7 @@ export default class Resolver {
if (isCollectionOrOrderedCollection(collection)) { if (isCollectionOrOrderedCollection(collection)) {
return collection; return collection;
} else { } else {
throw new Error(`unknown collection type: ${collection.type}`); throw new Error(`unrecognized collection type: ${collection.type}`);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment