chore: better error text
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user