Skip to content

Commit

Permalink
fix: don't show exception to user
Browse files Browse the repository at this point in the history
There is already a nice explanation on why the detection failed,
so no need to show an exception dialog about failing to start it.

	Uncaught Exception:
	Error: spawn podman ENOENT

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
  • Loading branch information
afbjorklund authored and benoitf committed Jun 28, 2023
1 parent bc24434 commit a2ca09b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/podman/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,9 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):
args = ['--host', 'podman', ...args];
}
const podmanProcess = spawn(command, args);
podmanProcess.on('error', err => {
console.error('Failed to spawn process.', err);
});

// check for up to 5s to see if the socket is being made available
const socketPath = getLinuxSocketPath();
Expand Down

0 comments on commit a2ca09b

Please sign in to comment.