summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/StardewModdingAPI/Program.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index a46f7a3e..62b9dabd 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -327,7 +327,14 @@ namespace StardewModdingAPI
// get manifest path
string manifestPath = Path.Combine(directory, "manifest.json");
+ if (!File.Exists(manifestPath))
+ {
+ Program.Monitor.Log($"Ignored folder \"{new DirectoryInfo(directory).Name}\" which doesn't have a manifest.json.", LogLevel.Warn);
+ continue;
+ }
string errorPrefix = $"Couldn't load mod for manifest '{manifestPath}'";
+
+ // read manifest
Manifest manifest;
try
{