Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 9b5debe

Browse files
committed
Throw real error
1 parent 8f9a38a commit 9b5debe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typescript-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ export class TypeScriptService {
651651
if (isDefinitelyTyped) {
652652
// Error if not passed a SymbolDescriptor query with an `@types` PackageDescriptor
653653
if (!params.symbol || !params.symbol.package || !params.symbol.package.name || !params.symbol.package.name.startsWith('@types/')) {
654-
return Observable.throw('workspace/symbol on DefinitelyTyped is only supported with a SymbolDescriptor query with an @types PackageDescriptor');
654+
return Observable.throw(new Error('workspace/symbol on DefinitelyTyped is only supported with a SymbolDescriptor query with an @types PackageDescriptor'));
655655
}
656656

657657
// Fetch all files in the package subdirectory

0 commit comments

Comments
 (0)