Skip to content

Commit

Permalink
Change error notification to "Description (HRESULT=...)"
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Jul 15, 2024
1 parent 34aaff8 commit 4386a88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SKIV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3834,8 +3834,9 @@ SKIF_WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
ImGui::InsertNotification ({
ImGuiToastType::Error, 5000,
"Screen Capture Failed",
"%HRESULT=%x (%ws)", hr,
_com_error (hr).ErrorMessage ()
"%ws (HRESULT=%x)",
_com_error (hr).ErrorMessage (),
hr
});
}
}
Expand Down

0 comments on commit 4386a88

Please sign in to comment.