Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Maple2.File.Ingest/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@
string serverPath = Path.Combine(ms2Root, "Server.m2d");

if (!File.Exists(xmlPath)) {
throw new FileNotFoundException("Could not find Xml.m2d file");
throw new FileNotFoundException($"Could not find Xml.m2d file at path: {xmlPath}");
}

if (!File.Exists(exportedPath)) {
throw new FileNotFoundException("Could not find Exported.m2d file");
throw new FileNotFoundException($"Could not find Exported.m2d file at path: {exportedPath}");
}

if (!File.Exists(serverPath)) {
throw new FileNotFoundException("Could not find Server.m2d file, check discord for this file. Link in README.md");
throw new FileNotFoundException($"Could not find Server.m2d file at path: {serverPath}\n" +
"You can download this file from here: https://github.com/Zintixx/MapleStory2-XML/releases/latest");
}

string? server = Environment.GetEnvironmentVariable("DB_IP");
Expand Down
2 changes: 1 addition & 1 deletion Maple2.Tools/Dotenv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public static void Load() {
string dotenv = Path.Combine(Paths.SOLUTION_DIR, ".env");

if (!File.Exists(dotenv)) {
Console.WriteLine("No .env file found");
Console.WriteLine($"No .env file found at path: {dotenv}");
return;
}

Expand Down