Fix IL verification throwing if a verifier error does not need to be formatted.

This commit is contained in:
Pieter-Jan Briers
2021-03-09 21:04:12 +01:00
parent 6b0670d5f1
commit 1394a017bb

View File

@@ -219,7 +219,8 @@ namespace Robust.Shared.ContentPack
continue;
}
var msg = $"{name}: ILVerify: {string.Format(res.Message, res.Args)}";
var formatted = res.Args == null ? res.Message : string.Format(res.Message, res.Args);
var msg = $"{name}: ILVerify: {formatted}";
try
{