Tighten Connect client error causes
This commit is contained in:
1 parent
a81b18d6e3
commit
00ead3f652
1 file changed
+2
-1
@@ -22,13 +22,14 @@ const textEncoder = new TextEncoder();
|
||||
const textDecoder = new TextDecoder();
|
||||
|
||||
const connectClientInternalErrorContext = {
|
||||
cause: Schema.optional(Schema.Defect()),
|
||||
cause: Schema.Defect(),
|
||||
};
|
||||
|
||||
export class ConnectSecurityModeLoadError extends Schema.TaggedErrorClass<ConnectSecurityModeLoadError>()(
|
||||
"ConnectSecurityModeLoadError",
|
||||
{
|
||||
...connectClientInternalErrorContext,
|
||||
cause: Schema.optional(Schema.Defect()),
|
||||
invalidValue: Schema.optional(Schema.String),
|
||||
},
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user