From 7fc25bc32547277c38bbedceb39c454843af8aac Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Mon, 22 Jun 2020 19:06:48 +1000 Subject: Replace ExitTrace with new DUTIL_CALLBACK_TRACEERROR callback. This allows capturing internal dutil errors and eventually supports filtering to certain parts of dutil. Add Exit...Source macros to simplify calling both TraceError/TraceErrorDebug and Dutil_TraceErrorSource. Make existing Exit macros call the new Exit...Source macros so the logic is in one place. --- src/dutil/dirutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dutil/dirutil.cpp') diff --git a/src/dutil/dirutil.cpp b/src/dutil/dirutil.cpp index ddd621ac..1f06f551 100644 --- a/src/dutil/dirutil.cpp +++ b/src/dutil/dirutil.cpp @@ -254,7 +254,7 @@ extern "C" HRESULT DAPI DirEnsureDeleteEx( if (FAILED(hr)) { // if we failed to delete a subdirectory, keep trying to finish any remaining files - ExitTrace(hr, "Failed to delete subdirectory; continuing: %ls", sczDelete); + ExitTraceSource(DUTIL_SOURCE_DEFAULT, hr, "Failed to delete subdirectory; continuing: %ls", sczDelete); hr = S_OK; } } -- cgit v1.2.3-55-g6feb