From deed3890cdb8b2d7403f04cbf9940d69ffedbfae Mon Sep 17 00:00:00 2001 From: partouf Date: Fri, 18 Aug 2023 03:36:57 +0200 Subject: [PATCH] extra debugging --- src/appcontainer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/appcontainer.cpp b/src/appcontainer.cpp index d7b2376..553479c 100644 --- a/src/appcontainer.cpp +++ b/src/appcontainer.cpp @@ -14,8 +14,12 @@ void cewrapper::AppContainer::CreateContainer() if (FAILED(hr)) { - if (config.debugging) + if (config.debugging) { std::wcerr << "CreateAppContainerProfile or DeriveAppContainerSidFromAppContainerName - Failed with " << hr << "\n"; + + if (config.extra_debugging) + OutputErrorMessage(GetLastError(), "CreateAppContainerProfile"); + } abort(); } }