summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorMartin Tournoij <martin@arp242.net>2021-07-24 13:57:29 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-24 13:57:29 +0200
commit1a3e5747b7df7ddda312bbfd18e04fc2122001fb (patch)
treedf3916d14b86db869aa32ce5a032e4d7dc09f0fa /src/terminal.c
parent5a234eb18e6e43408755bb24e813330306c11629 (diff)
downloadvim-git-1a3e5747b7df7ddda312bbfd18e04fc2122001fb.tar.gz
patch 8.2.3208: dynamic library load error does not mention why it failedv8.2.3208
Problem: Dynamic library load error does not mention why it failed. Solution: Add the error message. (Martin Tournoij, closes #8621)
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