MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / CheckFailure

Function CheckFailure

SampleApps/WebView2APISample/CheckFailure.cpp:19–26  ·  view source on GitHub ↗

If something failed, show the error code and fail fast.

Source from the content-addressed store, hash-verified

17
18// If something failed, show the error code and fail fast.
19void CheckFailure(HRESULT hr, const std::wstring& message)
20{
21 if (FAILED(hr))
22 {
23 ShowFailure(hr, message);
24 FAIL_FAST();
25 }
26}
27
28void FeatureNotAvailable()
29{

Callers

nothing calls this directly

Calls 1

ShowFailureFunction · 0.70

Tested by

no test coverage detected