From 69773338b9bdd91c5f8e94400f68172ccfc098ac Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Thu, 5 Jan 2023 15:46:33 -0800 Subject: Include OS error if reap_editor() fails --- fluid/ExternalCodeEditor_WIN32.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluid/ExternalCodeEditor_WIN32.cxx b/fluid/ExternalCodeEditor_WIN32.cxx index 704209ab4..6bdb54223 100644 --- a/fluid/ExternalCodeEditor_WIN32.cxx +++ b/fluid/ExternalCodeEditor_WIN32.cxx @@ -159,8 +159,8 @@ void ExternalCodeEditor::close_editor() { case -2: // no editor running (unlikely to happen) return; case -1: // error - fl_alert("Error reaping external editor\n" - "pid=%ld file=%s", long(pinfo_.dwProcessId), filename()); + fl_alert("Error reaping external editor\npid=%ld file=%s\nOS error message=%s", + long(pinfo_.dwProcessId), filename(), get_ms_errmsg()); break; case 0: // process still running switch ( fl_choice("Please close external editor\npid=%ld file=%s", -- cgit v1.2.3