rm unserializable

This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-02-26 13:20:36 -08:00
1 parent 9fae3ee0e9
commit 1e75bd223c
1 file changed
+3 -5
+3 -5
View File
@@ -1,8 +1,6 @@
import { SchemaIssue, Schema } from "effect";
import type {
ProjectionRepositoryError,
} from "../persistence/Errors.ts";
import type { ProjectionRepositoryError } from "../persistence/Errors.ts";
export class OrchestrationCommandJsonParseError extends Schema.TaggedErrorClass<OrchestrationCommandJsonParseError>()(
"OrchestrationCommandJsonParseError",
@@ -110,7 +108,7 @@ export function toProjectorDecodeError(eventType: string) {
export function toOrchestrationJsonParseError(cause: unknown) {
return new OrchestrationCommandJsonParseError({
detail: `Failed to parse orchestration command JSON: ${cause}`,
detail: `Failed to parse orchestration command JSON`,
cause,
});
}
@@ -119,7 +117,7 @@ export function toListenerCallbackError(listener: "read-model" | "domain-event")
return (cause: unknown): OrchestrationListenerCallbackError =>
new OrchestrationListenerCallbackError({
listener,
detail: `Failed to invoke orchestration ${listener} listener: ${cause}`,
detail: `Failed to invoke orchestration ${listener} listener`,
cause,
});
}