Skip to content

Commit 1a81dac

Browse files
committed
Don't show an error when there's no error
Signed-off-by: David Gageot <[email protected]>
1 parent 3145321 commit 1a81dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/ui/src/FileUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const tryRunImageSync = async (client: v1.DockerDesktopClient, args: stri
1010
const showError = ignoreError ? () => { } : client.desktopUI.toast.error
1111
try {
1212
const result = await client.docker.cli.exec('run', args)
13-
if (result.stderr) {
13+
if (result.code !== undefined && result.code != 0 && result.stderr) {
1414
showError(result.stderr)
1515
}
1616
return result.stdout || ''

0 commit comments

Comments
 (0)