Skip to content

Commit 09db7c8

Browse files
committed
Display error code on failure
1 parent 423dd75 commit 09db7c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ DK_API void freeze() {
349349

350350
std::string filepath(path);
351351

352-
std::cout << filepath << "\n";
352+
// std::cout << filepath << "\n";
353353

354354
if (filepath.find("DyKnow") != std::string::npos &&
355355
filepath.find("Cloud") != std::string::npos) {
@@ -358,7 +358,7 @@ DK_API void freeze() {
358358
DWORD result = SuspendThread(hThread);
359359

360360
if (result == -1) {
361-
error("Failed to suspend thread!");
361+
error("Failed to suspend thread!", true);
362362
}
363363

364364
CloseHandle(hThread);

0 commit comments

Comments
 (0)