Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit 5e7cdca

Browse files
committed
Handle EntryPointNotFoundException too when trying to load libedit.
1 parent 21c49be commit 5e7cdca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommandLine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static CommandLine()
6262
{
6363
LibEdit.Initialize();
6464
}
65-
catch (DllNotFoundException)
65+
catch (Exception e) when (e is DllNotFoundException || e is EntryPointNotFoundException)
6666
{
6767
// Fall back to `Mono.Terminal.LineEditor`.
6868
_lineEditor = new LineEditor(null);

0 commit comments

Comments
 (0)