From 1a3e5747b7df7ddda312bbfd18e04fc2122001fb Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Sat, 24 Jul 2021 13:57:29 +0200 Subject: patch 8.2.3208: dynamic library load error does not mention why it failed Problem: Dynamic library load error does not mention why it failed. Solution: Add the error message. (Martin Tournoij, closes #8621) --- src/terminal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/terminal.c') diff --git a/src/terminal.c b/src/terminal.c index 1f64c8bd63..98b46004e7 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 -- cgit v1.2.3