fix: rename C11_DEBUGGER_UNKNOW_ERROR to C11_DEBUGGER_UNKNOWN_ERROR

Correct the spelling of the enum constant from UNKNOW to UNKNOWN
in both the definition (core.h) and its usage in dap.c.
This commit is contained in:
Zishan Sun 2026-03-30 23:27:01 -05:00
parent 9a57b281e8
commit c52c817b9d
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ typedef enum { C11_DEBUGGER_NOSTOP, C11_DEBUGGER_STEP, C11_DEBUGGER_EXCEPTION, C
typedef enum {
C11_DEBUGGER_SUCCESS = 0,
C11_DEBUGGER_EXIT = 1,
C11_DEBUGGER_UNKNOW_ERROR = 3,
C11_DEBUGGER_UNKNOWN_ERROR = 3,
C11_DEBUGGER_FILEPATH_ERROR = 7
} C11_DEBUGGER_STATUS;

View File

@ -508,7 +508,7 @@ void c11_dap_tracefunc(py_Frame* frame, enum py_TraceEvent event) {
case C11_DEBUGGER_FILEPATH_ERROR:
message = "Invalid py_file path: '..' forbidden, './' only allowed at start.";
break;
case C11_DEBUGGER_UNKNOW_ERROR:
case C11_DEBUGGER_UNKNOWN_ERROR:
default: message = "Unknown debugger failure."; break;
}
if(message) { c11_dap_send_fatal_event(message); }