diff options
author | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-23 16:45:11 -0400 |
---|---|---|
committer | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-23 16:45:11 -0400 |
commit | 112305161688eb4d88ccfc79b5636eca6e0ab1d9 (patch) | |
tree | be8564d3fdf8d4a2eb92b8e4d2304fcbb20368ae /StardewModdingAPI/Program.cs | |
parent | 7654bcc92ba1ffbed1169dee995627f6d4d99805 (diff) | |
parent | 7c9336e3b140ea8d343d7abcc5c166016136d7b7 (diff) | |
download | SMAPI-112305161688eb4d88ccfc79b5636eca6e0ab1d9.tar.gz SMAPI-112305161688eb4d88ccfc79b5636eca6e0ab1d9.tar.bz2 SMAPI-112305161688eb4d88ccfc79b5636eca6e0ab1d9.zip |
Merge pull request #63 from Zoryn4163/master
errors now tell you the dll that errored not the manifest
Diffstat (limited to 'StardewModdingAPI/Program.cs')
-rw-r--r-- | StardewModdingAPI/Program.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/StardewModdingAPI/Program.cs b/StardewModdingAPI/Program.cs index 41d137d4..4d1d23d1 100644 --- a/StardewModdingAPI/Program.cs +++ b/StardewModdingAPI/Program.cs @@ -303,12 +303,13 @@ namespace StardewModdingAPI Log.Error("Failed to create psconfigs directory '{0}'. Exception details:\n" + ex, Path.GetDirectoryName(s));
continue;
}
+ string targDll = string.Empty;
try
{
- string targDll = Path.Combine(Path.GetDirectoryName(s), manifest.EntryDll);
+ targDll = Path.Combine(Path.GetDirectoryName(s), manifest.EntryDll);
if (!File.Exists(targDll))
{
- Log.Error("Failed to load mod '{0}'. File {1} does not exist!", s, targDll);
+ Log.Error("Failed to load mod '{0}'. File {1} does not exist!", manifest.EntryDll, targDll);
continue;
}
@@ -332,7 +333,7 @@ namespace StardewModdingAPI }
catch (Exception ex)
{
- Log.Error("Failed to load mod '{0}'. Exception details:\n" + ex, s);
+ Log.Error("Failed to load mod '{0}'. Exception details:\n" + ex, targDll);
}
}
}
|