Skip to content

Commit 0492d75

Browse files
committed
Report WebSocket execution errors
1 parent 25832ce commit 0492d75

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ui/frontend/reducers/output/execute.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
createWebsocketResponse,
1515
makeWebSocketMeta,
1616
} from '../../websocketActions';
17+
import { websocketError } from '../websocket';
1718

1819
const initialState: State = {
1920
requestsInProgress: 0,
@@ -216,6 +217,12 @@ const slice = createSlice({
216217
state.error = payload.exitDetail;
217218
}
218219
}),
220+
)
221+
.addCase(
222+
websocketError,
223+
sequenceNumberMatches((state, payload) => {
224+
state.error = payload.error;
225+
}),
219226
);
220227
},
221228
});

0 commit comments

Comments
 (0)