fix: address CodeRabbit findings on query/transport error handling

This commit is contained in:
Tom Boucher
2026-05-04 21:47:10 -04:00
parent 1642f47908
commit 40acf1f02e
6 changed files with 38 additions and 10 deletions

View File

@@ -13,4 +13,9 @@ describe('GSDToolsError constructors', () => {
expect(err.classification).toEqual({ kind: 'failure' });
expect(err.exitCode).toBe(1);
});
it('defaults direct constructor to failure classification', () => {
const err = new GSDToolsError('boom', 'state', ['load'], 1, 'stderr');
expect(err.classification).toEqual({ kind: 'failure' });
});
});