From de618d49042e3240a58eb1fa1bc0201a6438b8e7 Mon Sep 17 00:00:00 2001 From: Jeroen Vervaeke Date: Wed, 29 Oct 2025 17:05:23 +0000 Subject: [PATCH] fix(atlas-local): improve error message when Docker is unavailable Replace scary error messages with user-friendly messages that don't expose technical error details. When Docker is unavailable, show a simple message indicating Atlas Local tools are disabled but other tools continue to work normally. --- src/common/atlasLocal.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/common/atlasLocal.ts b/src/common/atlasLocal.ts index 33fb2b543..58fa174de 100644 --- a/src/common/atlasLocal.ts +++ b/src/common/atlasLocal.ts @@ -12,18 +12,14 @@ export const defaultCreateAtlasLocalClient: AtlasLocalClientFactoryFn = async () // Connect to Atlas Local client // This will fail if docker is not running return AtlasLocalClient.connect(); - } catch (dockerError) { + } catch { console.warn( - "Failed to connect to Atlas Local client (Docker not available or not running), atlas-local tools will be disabled (error: ", - dockerError, - ")" + "Cannot connect to Docker. Atlas Local tools are disabled. All other tools continue to work normally." ); } - } catch (importError) { + } catch { console.warn( - "Failed to import Atlas Local client (platform not supported), atlas-local tools will be disabled (error: ", - importError, - ")" + "Atlas Local is not supported on this platform. Atlas Local tools are disabled. All other tools continue to work normally." ); }