From bf475862593fabcc4e1fb4783fca540ea516036e Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 14 Jul 2023 12:56:36 +0200 Subject: [PATCH] Add more info on save session error message part 2 --- PowerEditor/src/Parameters.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index 2107300b0..180ed37b9 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -3486,7 +3486,9 @@ void NppParameters::writeSession(const Session & session, const TCHAR *fileName) doesBackupCopyExist = CopyFile(sessionPathName, backupPathName, FALSE); if (!doesBackupCopyExist) { - ::MessageBox(nullptr, GetLastErrorAsString(0).c_str(), L"Session file backup error", MB_OK); + wstring errTitle = L"Session file backup error: "; + errTitle += GetLastErrorAsString(0); + ::MessageBox(nullptr, sessionPathName, errTitle.c_str(), MB_OK); } }