mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 14:54:39 +02:00
Add more info on save session error message part 2
This commit is contained in:
parent
7e353903b8
commit
bf47586259
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user