report the full path when loading any files which might help in troubleshooting files not found properly

This commit is contained in:
TheSnoozer 2019-09-22 10:16:43 +02:00 committed by ORelio
parent 46dd4bc35f
commit 3393e7e402
5 changed files with 10 additions and 7 deletions

View file

@ -36,7 +36,7 @@ namespace MinecraftClient.ChatBots
if (System.IO.File.Exists(Settings.AutoRelog_KickMessagesFile))
{
if (Settings.DebugMessages)
LogToConsole("Loading messages from file: " + Settings.AutoRelog_KickMessagesFile);
LogToConsole("Loading messages from file: " + System.IO.Path.GetFullPath(Settings.AutoRelog_KickMessagesFile));
dictionary = System.IO.File.ReadAllLines(Settings.AutoRelog_KickMessagesFile);
@ -49,7 +49,7 @@ namespace MinecraftClient.ChatBots
}
else
{
LogToConsole("File not found: " + Settings.AutoRelog_KickMessagesFile);
LogToConsole("File not found: " + System.IO.Path.GetFullPath(Settings.AutoRelog_KickMessagesFile));
if (Settings.DebugMessages)
LogToConsole(" Current directory was: " + System.IO.Directory.GetCurrentDirectory());