mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix YAML linter not printing the erroring file when failing to load it (#6256)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user