Skip to content

Commit 0c5b8d5

Browse files
committed
Make sure getAuthInfo can catch error
1 parent e5b4ca1 commit 0c5b8d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/local-ssh/ipc/localssh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export class LocalSSHServiceImpl implements LocalSSHServiceImplementation {
8282

8383
public async getWorkspaceAuthInfo(workspaceId: string) {
8484
return retryWithStop((stop) => {
85-
const getAuthInfo = (id: string, client: Client<ExtensionServiceDefinition>) => {
85+
const getAuthInfo = async (id: string, client: Client<ExtensionServiceDefinition>) => {
8686
try {
87-
return client.getWorkspaceAuthInfo({ workspaceId });
87+
return await client.getWorkspaceAuthInfo({ workspaceId });
8888
} catch (e) {
8989
if (e instanceof ServerError) {
9090
if (e.code === Status.UNAVAILABLE && e.details.startsWith('workspace is not running')) {

0 commit comments

Comments
 (0)