mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Clean up docs for connect and ConnectionResult (#19509)
* Clean up docs for connect and ConnectionResult * links * fix build * fix
This commit is contained in:
@@ -685,3 +685,9 @@ export function findSqlVersionInTargetPlatform(targetPlatform: string): number |
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function throwIfNotConnected(connectionResult: azdataType.ConnectionResult): void {
|
||||
if (!connectionResult.connected) {
|
||||
throw new Error(`${connectionResult.errorMessage} (${connectionResult.errorCode})`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user