diff options
author | John Ankarström <john@ankarstrom.se> | 2022-09-07 01:22:30 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-09-07 01:22:30 +0200 |
commit | ac7d676a1c457f71f1d3ae17d74699dd95c9c985 (patch) | |
tree | 96d44cc6740de053db377ac51f3102b9871a90d4 /c/ext.cpp | |
parent | b2a018ff822bcdb5b9b691025a5fc1eb6fc13b4b (diff) | |
download | EpisodeBrowser-ac7d676a1c457f71f1d3ae17d74699dd95c9c985.tar.gz |
Normalize error message formatting.
Diffstat (limited to 'c/ext.cpp')
-rw-r--r-- | c/ext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -12,7 +12,7 @@ bool OpenOnline(const CfgA& cfg, int iEp) INT_PTR r = reinterpret_cast<INT_PTR>( ShellExecuteW(nullptr, L"open", url, nullptr, nullptr, SW_SHOWNORMAL)); if (r <= 32) - throw Err(WINDOWS, L"Address "s + url + L" could not be opened: %s"); + throw Err(WINDOWS, L"Address "s + url + L" could not be opened: %s."); return true; } @@ -23,7 +23,7 @@ bool OpenWiki(const DlvDataA& d) INT_PTR r = reinterpret_cast<INT_PTR>( ShellExecuteW(nullptr, L"open", url, nullptr, nullptr, SW_SHOWNORMAL)); if (r <= 32) - throw Err(WINDOWS, L"Address "s + url + L" could not be opened: %s"); + throw Err(WINDOWS, L"Address "s + url + L" could not be opened: %s."); return true; } @@ -84,7 +84,7 @@ static bool FindMatchingFile(wchar_t (&file)[MAX_PATH], const wchar_t* const roo WIN32_FIND_DATA fdata; Unique<HANDLE, FindClose> h = FindFirstFileW(pat, &fdata); if (h.Bad(INVALID_HANDLE_VALUE)) - throw Err(WINDOWS, L"Directory "s + root + L" could not be traversed: %s"); + throw Err(WINDOWS, L"Directory "s + root + L" could not be traversed: %s."); do if (fdata.cFileName[0] == L'.') @@ -102,7 +102,7 @@ static bool FindMatchingFile(wchar_t (&file)[MAX_PATH], const wchar_t* const roo while (FindNextFileW(h.v, &fdata)); if (GetLastError() != ERROR_NO_MORE_FILES) - throw Err(WINDOWS, L"Next file in "s + root + L" could not be accessed: %s"); + throw Err(WINDOWS, L"Next file in "s + root + L" could not be accessed: %s."); return false; } @@ -114,7 +114,7 @@ bool OpenLocally(CfgA& cfg, const ElvDataA& e) INT_PTR r = reinterpret_cast<INT_PTR>( ShellExecuteW(nullptr, L"open", file, nullptr, nullptr, SW_SHOWNORMAL)); if (r <= 32) - throw Err(WINDOWS, L"File "s + file + L" could not be opened: %s"); + throw Err(WINDOWS, L"File "s + file + L" could not be opened: %s."); return true; } else return false; |