mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
ZoneCodeGenerator: Fix TestAsset not throwing an exception when info is missing due to wrong if condition
This commit is contained in:
parent
799d3cbce7
commit
825b14bfd4
@ -42,7 +42,7 @@ namespace ZoneCodeGenerator.Parsing.CommandFile.Tests
|
|||||||
}
|
}
|
||||||
|
|
||||||
var assetInfo = state.Repository.GetInformationFor(assetTypeWithMembers);
|
var assetInfo = state.Repository.GetInformationFor(assetTypeWithMembers);
|
||||||
if (assetType == null)
|
if (assetInfo == null)
|
||||||
{
|
{
|
||||||
throw new LoadingException($"Could not find information for type '{assetTypeName}' to mark it as an asset.");
|
throw new LoadingException($"Could not find information for type '{assetTypeName}' to mark it as an asset.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user