summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2024-11-02 21:03:23 -0400
committerHazelnoot <acomputerdog@gmail.com>2024-11-26 08:59:08 -0500
commitb9fd7e1b77097c4c1e1004e6cff5499a97ff03d6 (patch)
tree434091922f18615fe1e9be4be4f179be3de4c0cc
parentavoid potential crash if Question activity is corrupt (diff)
downloadsharkey-b9fd7e1b77097c4c1e1004e6cff5499a97ff03d6.tar.gz
sharkey-b9fd7e1b77097c4c1e1004e6cff5499a97ff03d6.tar.bz2
sharkey-b9fd7e1b77097c4c1e1004e6cff5499a97ff03d6.zip
clarify "failed to resolve quote" message
-rw-r--r--packages/backend/src/core/activitypub/models/ApNoteService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts
index 228a693cc4..2e232f49a2 100644
--- a/packages/backend/src/core/activitypub/models/ApNoteService.ts
+++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts
@@ -313,7 +313,7 @@ export class ApNoteService {
quote = results.filter((x): x is { status: 'ok', res: MiNote } => x.status === 'ok').map(x => x.res).at(0);
if (!quote) {
if (results.some(x => x.status === 'temperror')) {
- throw new Error(`quote resolve failed: ${entryUri}`);
+ throw new Error(`failed to resolve quote for ${entryUri}`);
}
}
}
@@ -542,7 +542,7 @@ export class ApNoteService {
quote = results.filter((x): x is { status: 'ok', res: MiNote } => x.status === 'ok').map(x => x.res).at(0);
if (!quote) {
if (results.some(x => x.status === 'temperror')) {
- throw new Error(`quote resolve failed: ${noteUri}`);
+ throw new Error(`failed to resolve quote for ${noteUri}`);
}
}
}