refactor: reduce query error factory public surface

This commit is contained in:
Tom Boucher
2026-05-04 20:22:58 -04:00
parent ace241d0c2
commit 5aaf0dbea5
2 changed files with 6 additions and 8 deletions

View File

@@ -29,11 +29,11 @@ export interface QueryNativeErrorFactory {
createNativeFailureError: (message: string, command: string, args: string[], cause: unknown) => GSDToolsError;
}
export function timeoutToolsError(message: string, command: string, args: string[], stderr = '', timeoutMs?: number): GSDToolsError {
function timeoutToolsError(message: string, command: string, args: string[], stderr = '', timeoutMs?: number): GSDToolsError {
return GSDToolsError.timeout(message, command, args, stderr, timeoutMs);
}
export function failureToolsError(
function failureToolsError(
message: string,
command: string,
args: string[],