Skip to content

Commit 4da02af

Browse files
ZvonimirZvonimir
authored andcommitted
[bug] Align EPCIS capture schema and status error logging
1 parent 19961ee commit 4da02af

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

packages/plugin-epcis/src/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ export default defineDkgPlugin((ctx, mcp, api) => {
510510
description: "Capture accepted (202)",
511511
schema: z.object({
512512
status: z.string(),
513+
requestId: z.string(),
513514
receivedAt: z.string(),
514515
captureID: z.string(),
515516
eventCount: z.number(),
@@ -626,10 +627,11 @@ export default defineDkgPlugin((ctx, mcp, api) => {
626627
error instanceof Error ? error.name : "UnknownError";
627628
const errorMessage =
628629
error instanceof Error ? error.message : String(error);
629-
console.error(
630-
`[EPCIS] Capture status request failed, captureID: ${captureID}`,
631-
{ errorName, errorMessage },
632-
);
630+
console.error("[EPCIS] Capture status request failed", {
631+
captureID,
632+
errorName,
633+
errorMessage,
634+
});
633635
return res.status(500).json({
634636
error: "Failed to get capture status",
635637
} as any);

0 commit comments

Comments
 (0)