mirror of
https://github.com/pocketpy/pocketpy
synced 2026-05-08 03:03:37 +00:00
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:
parent
9a57b281e8
commit
c52c817b9d
@ -12,7 +12,7 @@ typedef enum { C11_DEBUGGER_NOSTOP, C11_DEBUGGER_STEP, C11_DEBUGGER_EXCEPTION, C
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
C11_DEBUGGER_SUCCESS = 0,
|
C11_DEBUGGER_SUCCESS = 0,
|
||||||
C11_DEBUGGER_EXIT = 1,
|
C11_DEBUGGER_EXIT = 1,
|
||||||
C11_DEBUGGER_UNKNOW_ERROR = 3,
|
C11_DEBUGGER_UNKNOWN_ERROR = 3,
|
||||||
C11_DEBUGGER_FILEPATH_ERROR = 7
|
C11_DEBUGGER_FILEPATH_ERROR = 7
|
||||||
} C11_DEBUGGER_STATUS;
|
} C11_DEBUGGER_STATUS;
|
||||||
|
|
||||||
|
|||||||
@ -508,7 +508,7 @@ void c11_dap_tracefunc(py_Frame* frame, enum py_TraceEvent event) {
|
|||||||
case C11_DEBUGGER_FILEPATH_ERROR:
|
case C11_DEBUGGER_FILEPATH_ERROR:
|
||||||
message = "Invalid py_file path: '..' forbidden, './' only allowed at start.";
|
message = "Invalid py_file path: '..' forbidden, './' only allowed at start.";
|
||||||
break;
|
break;
|
||||||
case C11_DEBUGGER_UNKNOW_ERROR:
|
case C11_DEBUGGER_UNKNOWN_ERROR:
|
||||||
default: message = "Unknown debugger failure."; break;
|
default: message = "Unknown debugger failure."; break;
|
||||||
}
|
}
|
||||||
if(message) { c11_dap_send_fatal_event(message); }
|
if(message) { c11_dap_send_fatal_event(message); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user