fix(core): preserve structured error messages (#33530)
This commit is contained in:
@@ -1016,6 +1016,8 @@ it.instance("ModelNotFoundError includes suggestions for typos", () =>
|
||||
.pipe(Effect.flip)
|
||||
expect(error.suggestions).toBeDefined()
|
||||
expect((error.suggestions ?? []).length).toBeGreaterThan(0)
|
||||
expect(error.message).toContain("Model not found: anthropic/claude-sonet-4")
|
||||
expect(error.message).toContain("Did you mean:")
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user