Skip to content

Commit fcd3ef7

Browse files
committed
Improve error message
1 parent 9dbd4b3 commit fcd3ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SimpleDebugger/SimpleDebugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void protectPage(vm_address_t address, vm_size_t size, vm_prot_t newProtection)
5656
kern_return_t result = vm_protect(mach_task_self(), address, size, 0, newProtection);
5757

5858
if (result != 0) {
59-
perror("error on vmprotect");
59+
printf("error calling vm_protect: %s (response value: %d)\n", mach_error_string(result), result);
6060
}
6161
}
6262

0 commit comments

Comments
 (0)