Skip to content

Commit 5497162

Browse files
committed
Do not hide rustfmt output when it failed
Fixes #996
1 parent 5d792f8 commit 5497162

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/frontend/reducers/output/meta.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ const slice = createSlice({
7474
state.focus = Focus.Format;
7575
})
7676

77-
.addCase(performFormat.fulfilled, (state) => {
78-
state.focus = undefined;
77+
.addCase(performFormat.fulfilled, (state, action) => {
78+
if (action.payload.success) {
79+
state.focus = undefined;
80+
}
7981
})
8082

8183
.addCase(performGistLoad.pending, setGist)

0 commit comments

Comments
 (0)