authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-26 00:19:59-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-26 13:20:36-08:00
log1e75bd223c1d5348b1a73762a0ecfd1b62fcf830
tree57e2c86c8a81c0de07560b9101a26cc098ccdb7e
parent9fae3ee0e95b036388b597558ee58617b0035494

rm unserializable


1 files changed, 3 insertions(+), 5 deletions(-)

apps/server/src/orchestration/Errors.ts+3-5
......@@ -1,8 +1,6 @@
11import { SchemaIssue, Schema } from "effect";
22
3import type {
4 ProjectionRepositoryError,
5} from "../persistence/Errors.ts";
3import type { ProjectionRepositoryError } from "../persistence/Errors.ts";
64
75export class OrchestrationCommandJsonParseError extends Schema.TaggedErrorClass<OrchestrationCommandJsonParseError>()(
86 "OrchestrationCommandJsonParseError",
......@@ -110,7 +108,7 @@ export function toProjectorDecodeError(eventType: string) {
110108
111109export function toOrchestrationJsonParseError(cause: unknown) {
112110 return new OrchestrationCommandJsonParseError({
113 detail: `Failed to parse orchestration command JSON: ${cause}`,
111 detail: `Failed to parse orchestration command JSON`,
114112 cause,
115113 });
116114}
......@@ -119,7 +117,7 @@ export function toListenerCallbackError(listener: "read-model" | "domain-event")
119117 return (cause: unknown): OrchestrationListenerCallbackError =>
120118 new OrchestrationListenerCallbackError({
121119 listener,
122 detail: `Failed to invoke orchestration ${listener} listener: ${cause}`,
120 detail: `Failed to invoke orchestration ${listener} listener`,
123121 cause,
124122 });
125123}