Skip to content

Commit a3f1b17

Browse files
ramiabughazalehmconnew
authored andcommitted
Added back the original try/catch block to wrap the string.Format call
1 parent 5ad1da5 commit a3f1b17

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/dotnet-svcutil/lib/src/FrameworkFork/Microsoft.Xml/Xml/schema/XmlSchemaException.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ internal static string CreateMessage(string res, string[] args)
104104
return res;
105105
}
106106

107-
return string.Format(res, args);
107+
try
108+
{
109+
return string.Format(res, args);
110+
}
111+
catch (MissingManifestResourceException)
112+
{
113+
return "UNKNOWN(" + res + ")";
114+
}
108115
}
109116

110117
internal string GetRes

0 commit comments

Comments
 (0)