Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 592d63b

Browse files
committed
bubble unrelated exceptions
1 parent 80f0c9c commit 592d63b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ServiceStack.Text/LicenseUtils.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ public static void RegisterLicense(string licenseKeyText)
241241
}
242242
catch (Exception exFallback)
243243
{
244+
if (exFallback is FileNotFoundException || exFallback is FileLoadException || exFallback is BadImageFormatException)
245+
throw;
246+
244247
throw new LicenseException(msg, exFallback).Trace();
245248
}
246249
}

0 commit comments

Comments
 (0)