Mac: In permissions error alert: show branded name and path to bad file or subdirectory

svn path=/trunk/boinc/; revision=25082
This commit is contained in:
Charlie Fenton 2012-01-17 10:37:38 +00:00
parent 52d06bce98
commit ecf6c103a3
2 changed files with 9 additions and 4 deletions

View File

@ -619,7 +619,7 @@ Rom 16 Jan 2012
version.h
Charlie 17 Jan 2012
- Mac: In permissions error alert: show branded name, if permissions
- Mac: In permissions error alert: show branded name; if permissions
error is in a subdirectory, show path to bad file or subdirectory.
client/

View File

@ -340,13 +340,18 @@ bool CBOINCGUIApp::OnInit() {
m_pSkinManager->GetAdvanced()->GetApplicationShortName().c_str()
);
} else {
wxString strErrorPath = wxString::FromUTF8(path_to_error);
strDialogMessage.Printf(
_("%s ownership or permissions are not set properly; please reinstall %s.\n(Error code %d at %s)"),
_("%s ownership or permissions are not set properly; please reinstall %s.\n(Error code %d"),
m_pSkinManager->GetAdvanced()->GetApplicationShortName().c_str(),
m_pSkinManager->GetAdvanced()->GetApplicationShortName().c_str(),
iErrorCode , strErrorPath.c_str()
iErrorCode
);
if (path_to_error[0]) {
strDialogMessage += _(" at ");
strDialogMessage += wxString::FromUTF8(path_to_error);
}
strDialogMessage += _(")");
fprintf(stderr, "%ls ownership or permissions are not set properly; please reinstall %ls.\n(Error code %d at %s)",
m_pSkinManager->GetAdvanced()->GetApplicationShortName().c_str(),
m_pSkinManager->GetAdvanced()->GetApplicationShortName().c_str(),