system/FmtError: new library

Replaces the Format*() functions in system/Error.hxx.
This commit is contained in:
Max Kellermann
2022-11-28 18:49:35 +01:00
parent 124e75c286
commit 96ae659fdf
25 changed files with 305 additions and 186 deletions

View File

@@ -24,5 +24,5 @@ WinEvent::WinEvent()
:event(CreateEventW(nullptr, false, false, nullptr))
{
if (!event)
throw FormatLastError("Error creating events");
throw MakeLastError("Error creating events");
}