Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Commit b370f3c

Browse files
committed
Log found dcd-client/dcd-server path if not global
1 parent 581141a commit b370f3c

File tree

1 file changed

+8
-2
lines changed
  • source/workspaced/com

1 file changed

+8
-2
lines changed

source/workspaced/com/dcd.d

+8-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ class DCDComponent : ComponentWrapper
3434
string serverPath = this.serverPath;
3535

3636
installedVersion = clientPath.getVersionAndFixPath;
37-
stderr.writeln("Detected dcd-client ", installedVersion);
38-
if (serverPath.getVersionAndFixPath != installedVersion)
37+
string clientPathInfo = clientPath != "dcd-client" ? "(" ~ clientPath ~ ") " : "";
38+
stderr.writeln("Detected dcd-client ", clientPathInfo, installedVersion);
39+
40+
string serverInstalledVersion = serverPath.getVersionAndFixPath;
41+
string serverPathInfo = serverPath != "dcd-server" ? "(" ~ serverPath ~ ") " : "";
42+
stderr.writeln("Detected dcd-server ", serverPathInfo, serverInstalledVersion);
43+
44+
if (serverInstalledVersion != installedVersion)
3945
throw new Exception("client & server version mismatch");
4046

4147
config.set("dcd", "clientPath", clientPath);

0 commit comments

Comments
 (0)