summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 1f64c8bd6..98b46004e 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -6862,8 +6862,9 @@ dyn_winpty_init(int verbose)
if (!hWinPtyDLL)
{
if (verbose)
- semsg(_(e_loadlib), *p_winptydll != NUL ? p_winptydll
- : (char_u *)WINPTY_DLL);
+ semsg(_(e_loadlib),
+ (*p_winptydll != NUL ? p_winptydll : (char_u *)WINPTY_DLL),
+ GetWin32Error());
return FAIL;
}
for (i = 0; winpty_entry[i].name != NULL