Wrap ASN.1 call until fixed in library

This commit is contained in:
Matt Nadareski
2024-11-20 15:07:13 -05:00
parent 4e40cc19d5
commit b7d5873eb7

View File

@@ -514,8 +514,15 @@ namespace SabreTools.Serialization.Printers
{
foreach (TypeLengthValue tlv in topLevelValues)
{
string tlvString = tlv.Format(paddingLevel: 4);
builder.AppendLine(tlvString);
try
{
string tlvString = tlv.Format(paddingLevel: 4);
builder.AppendLine(tlvString, " Type-length-value");
}
catch
{
builder.AppendLine(" Type-length-value: ERROR");
}
}
}
}