mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 17:23:25 -05:00
Remove sql/common (#4990)
* remove sql/common/ * formatting * fix cyclic dependency
This commit is contained in:
12
src/sql/base/common/errors.ts
Normal file
12
src/sql/base/common/errors.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
export function invalidProvider(name?: string): Error {
|
||||
if (name) {
|
||||
return new Error(`Invalid provider: ${name}`);
|
||||
} else {
|
||||
return new Error('Invalid provider');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user