Skip to content

Commit cc666d4

Browse files
fix(atlas-local): improve error message when Docker is unavailable (#708)
1 parent 4368cb3 commit cc666d4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/common/atlasLocal.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@ export const defaultCreateAtlasLocalClient: AtlasLocalClientFactoryFn = async ()
1212
// Connect to Atlas Local client
1313
// This will fail if docker is not running
1414
return AtlasLocalClient.connect();
15-
} catch (dockerError) {
15+
} catch {
1616
console.warn(
17-
"Failed to connect to Atlas Local client (Docker not available or not running), atlas-local tools will be disabled (error: ",
18-
dockerError,
19-
")"
17+
"Cannot connect to Docker. Atlas Local tools are disabled. All other tools continue to work normally."
2018
);
2119
}
22-
} catch (importError) {
20+
} catch {
2321
console.warn(
24-
"Failed to import Atlas Local client (platform not supported), atlas-local tools will be disabled (error: ",
25-
importError,
26-
")"
22+
"Atlas Local is not supported on this platform. Atlas Local tools are disabled. All other tools continue to work normally."
2723
);
2824
}
2925

0 commit comments

Comments
 (0)