mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
chore: better error text
This commit is contained in:
parent
330d9201a1
commit
61cff78b43
4 changed files with 4 additions and 4 deletions
|
@ -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 [];
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue