Skip to content

Commit 67b6c1b

Browse files
authored
tcp download fix (#1291)
1 parent 8cc7764 commit 67b6c1b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/panels/TcpDumpPanel.ts

+8
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,14 @@ spec:
419419
});
420420

421421
if (!localCaptureUri) {
422+
// Reset download state with error message if no file path was selected
423+
webview.postDownloadCaptureFileResponse({
424+
node,
425+
captureName,
426+
localCapturePath: "",
427+
succeeded: false,
428+
errorMessage: `Failed to download capture '${captureName}'. No file path was selected, please try again.`,
429+
});
422430
return;
423431
}
424432

0 commit comments

Comments
 (0)