summaryrefslogtreecommitdiff
path: root/zen/process_priority.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
commitfe9eb89ebc1b3c33cbac00a3fa095a14faef9113 (patch)
tree8a3bb620a9acb83fe0057061a86e8f2cb91a9fe1 /zen/process_priority.cpp
parent5.21 (diff)
downloadFreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.gz
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.bz2
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.zip
5.22
Diffstat (limited to 'zen/process_priority.cpp')
-rw-r--r--zen/process_priority.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/process_priority.cpp b/zen/process_priority.cpp
index b09b35f5..3ac2f068 100644
--- a/zen/process_priority.cpp
+++ b/zen/process_priority.cpp
@@ -28,7 +28,7 @@ struct PreventStandby::Pimpl {};
PreventStandby::PreventStandby()
{
if (::SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED) == 0)
- throw FileError(_("Failed to suspend system sleep mode.")); //no GetLastError() support?
+ throw FileError(_("Unable to suspend system sleep mode.")); //no GetLastError() support?
}
@@ -116,7 +116,7 @@ PreventStandby::PreventStandby() : pimpl(make_unique<Pimpl>())
CFSTR("FreeFileSync"),
&pimpl->assertionID);
if (rv != kIOReturnSuccess)
- throw FileError(_("Failed to suspend system sleep mode."), replaceCpy<std::wstring>(L"IOReturn Code %x", L"%x", numberTo<std::wstring>(rv))); //could not find a better way to convert IOReturn to string
+ throw FileError(_("Unable to suspend system sleep mode."), replaceCpy<std::wstring>(L"IOReturn Code %x", L"%x", numberTo<std::wstring>(rv))); //could not find a better way to convert IOReturn to string
}
PreventStandby::~PreventStandby()
bgstack15