diff options
Diffstat (limited to 'src/bootstrap/errors.c')
-rw-r--r-- | src/bootstrap/errors.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/errors.c b/src/bootstrap/errors.c index 61ea902..c1d2879 100644 --- a/src/bootstrap/errors.c +++ b/src/bootstrap/errors.c | |||
@@ -16,6 +16,7 @@ typedef enum ErrorValue { | |||
16 | ERR_SYMBOL_NOT_FOUND, | 16 | ERR_SYMBOL_NOT_FOUND, |
17 | ERR_OBJ_NOT_CALLABLE, | 17 | ERR_OBJ_NOT_CALLABLE, |
18 | ERR_NOT_ENOUGH_ARGS, | 18 | ERR_NOT_ENOUGH_ARGS, |
19 | ERR_TOO_MANY_ARGS, | ||
19 | ERR_WRONG_ARG_TYPE, | 20 | ERR_WRONG_ARG_TYPE, |
20 | ERR_DIVISION_BY_ZERO, | 21 | ERR_DIVISION_BY_ZERO, |
21 | } ErrorValue; | 22 | } ErrorValue; |
@@ -39,6 +40,7 @@ static const char* error_msgs[] = { | |||
39 | [ERR_SYMBOL_NOT_FOUND] = "error: symbol not found", | 40 | [ERR_SYMBOL_NOT_FOUND] = "error: symbol not found", |
40 | [ERR_OBJ_NOT_CALLABLE] = "error: object is not callable", | 41 | [ERR_OBJ_NOT_CALLABLE] = "error: object is not callable", |
41 | [ERR_NOT_ENOUGH_ARGS] = "error: not enough arguments", | 42 | [ERR_NOT_ENOUGH_ARGS] = "error: not enough arguments", |
43 | [ERR_TOO_MANY_ARGS] = "error: too many arguments", | ||
42 | [ERR_WRONG_ARG_TYPE] = "error: wrong argument type", | 44 | [ERR_WRONG_ARG_TYPE] = "error: wrong argument type", |
43 | [ERR_DIVISION_BY_ZERO] = "error: division by zero", | 45 | [ERR_DIVISION_BY_ZERO] = "error: division by zero", |
44 | }; | 46 | }; |