Use tagged errors for dispatch RPC

This commit is contained in:
elpresidank 2026-06-02 08:41:36 -05:00
parent 1d45307387
commit 39db6d8235
3 changed files with 25 additions and 4 deletions

View file

@ -14,8 +14,7 @@ export class DispatchStreamChunk extends S.Class<DispatchStreamChunk>("DispatchS
complete: S.Boolean,
}) {}
export class DispatchError extends S.ErrorClass<DispatchError>("DispatchError")({
_tag: S.tag("DispatchError"),
export class DispatchError extends S.TaggedErrorClass<DispatchError>()("DispatchError", {
message: S.String,
}) {}

View file

@ -14,8 +14,7 @@ export class DispatchStreamChunk extends S.Class<DispatchStreamChunk>("DispatchS
complete: S.Boolean,
}) {}
export class DispatchError extends S.ErrorClass<DispatchError>("DispatchError")({
_tag: S.tag("DispatchError"),
export class DispatchError extends S.TaggedErrorClass<DispatchError>()("DispatchError", {
message: S.String,
}) {}