Skip to content

Commit c3ccb29

Browse files
author
Rachel Macfarlane
committed
Fixes #184, Overview button state should be reset when checkout fails
1 parent d1e38a1 commit c3ccb29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/reviewManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ export class ReviewManager implements vscode.DecorationProvider {
757757
let isDirty = await this._repository.isDirty();
758758
if (isDirty) {
759759
vscode.window.showErrorMessage('Your local changes would be overwritten by checkout, please commit your changes or stash them before you switch branches');
760-
return;
760+
throw new Error('Has local changes');
761761
}
762762

763763
this.statusBarItem.text = '$(sync~spin) Switching to Review Mode';

0 commit comments

Comments
 (0)