Skip to content

Commit 52ec792

Browse files
Use IOException instead of FileLoadException to handle #269 where an FileNotFoundExeption is thrown. (#270)
Co-authored-by: Jarle Hjortland <[email protected]>
1 parent ca89f72 commit 52ec792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hyperion/Extensions/TypeEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public static Type LoadTypeByName(string name, bool disallowUnsafeTypes)
210210
"Unsafe Type Deserialization Detected!", name);
211211
return type;
212212
}
213-
catch (FileLoadException)
213+
catch (IOException)
214214
{
215215
var typename = ToQualifiedAssemblyName(name, ignoreAssemblyVersion: true);
216216
var type = Type.GetType(typename, true);

0 commit comments

Comments
 (0)