From ee55a0bfdd689ecb447f5d1c9658f4936e5e25d9 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 21 Jan 2020 21:53:52 -0500 Subject: [PATCH] Fixes switch branch command error handling --- src/commands/git/branch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/git/branch.ts b/src/commands/git/branch.ts index 7dec270..d898a7c 100644 --- a/src/commands/git/branch.ts +++ b/src/commands/git/branch.ts @@ -379,7 +379,7 @@ export class BranchGitCommand extends QuickCommandBase { } if (state.flags.includes('--switch')) { - void state.repo.switch(state.reference.ref, { createBranch: state.name }); + void (await state.repo.switch(state.reference.ref, { createBranch: state.name })); } else { void state.repo.branch(...state.flags, state.name, state.reference.ref); }