Skip to content

Commit

Permalink
Use IOException instead of FileLoadException to handle #269 where an …
Browse files Browse the repository at this point in the history
…FileNotFoundExeption is thrown. (#270)

Co-authored-by: Jarle Hjortland <jarle@webmed.no>
  • Loading branch information
jarlebh and Jarle Hjortland authored Oct 21, 2021
1 parent ca89f72 commit 52ec792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hyperion/Extensions/TypeEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static Type LoadTypeByName(string name, bool disallowUnsafeTypes)
"Unsafe Type Deserialization Detected!", name);
return type;
}
catch (FileLoadException)
catch (IOException)
{
var typename = ToQualifiedAssemblyName(name, ignoreAssemblyVersion: true);
var type = Type.GetType(typename, true);
Expand Down

0 comments on commit 52ec792

Please sign in to comment.