Skip to content

Commit 7d5f014

Browse files
committed
Better error messages for local config loading
1 parent cb21fe8 commit 7d5f014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TACTTool/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ private static async Task CommandLineArgHandler(InvocationContext context)
249249
// Load from build.info
250250
var buildInfoPath = Path.Combine(Settings.BaseDir, ".build.info");
251251
if (!File.Exists(buildInfoPath))
252-
throw new Exception("No build.info found in base directory");
252+
throw new Exception("No build.info found in base directory, is this a valid WoW installation?");
253253

254254
var buildInfo = new BuildInfo(buildInfoPath);
255255

256256
if (!buildInfo.Entries.Any(x => x.Product == Settings.Product))
257-
throw new Exception("No build found for product " + Settings.Product);
257+
throw new Exception("No build found for product " + Settings.Product + " in .build.info, are you sure this product is installed?");
258258

259259
var build = buildInfo.Entries.First(x => x.Product == Settings.Product);
260260

0 commit comments

Comments
 (0)