Fix YAML linter not printing the erroring file when failing to load it (#6256)

This commit is contained in:
DrSmugleaf
2025-11-13 02:35:42 -08:00
committed by GitHub
parent 14439784dd
commit 83279ff285

View File

@@ -39,7 +39,14 @@ public partial class PrototypeManager
}
var yamlStream = new YamlStream();
yamlStream.Load(reader);
try
{
yamlStream.Load(reader);
}
catch (Exception e)
{
throw new PrototypeLoadException($"Error loading file: '{resourcePath}'\n{e}");
}
foreach (var doc in yamlStream.Documents)
{