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); } }