summaryrefslogtreecommitdiff
path: root/errors.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-15 13:52:32 -0400
committerpommicket <pommicket@gmail.com>2025-09-15 13:52:32 -0400
commitee88497b4451225c3140f56d98ebcbc166175407 (patch)
tree39cd720c4840c2872fb065088b91658ef6d8d3d1 /errors.c
parent969bf523b7039c7038b66edde5776278c27941ac (diff)
Errors tests; fix some non-errors
Diffstat (limited to 'errors.c')
-rw-r--r--errors.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/errors.c b/errors.c
index 2e83f4a..014bea2 100644
--- a/errors.c
+++ b/errors.c
@@ -21,6 +21,7 @@ enum error_id {
ERROR_INVALID_LINE,
ERROR_EMPTY_KEY,
ERROR_REDEFINITION,
+ ERROR_NO_CLOSING_QUOTE,
ERROR_COUNT,
};
@@ -41,6 +42,7 @@ static const char *const error_messages_en[ERROR_COUNT] = {
[ERROR_INVALID_LINE] = "Line should start with [ or contain =",
[ERROR_EMPTY_KEY] = "Expected key name before =",
[ERROR_REDEFINITION] = "Re-definition of %s (previously defined on line %" PRIu64 ")",
+ [ERROR_NO_CLOSING_QUOTE] = "Missing closing %c",
};
@@ -61,6 +63,7 @@ static const char *const error_messages_fr[ERROR_COUNT] = {
[ERROR_INVALID_LINE] = "Ligne devrait commençant par [ ou contenir =",
[ERROR_EMPTY_KEY] = "Nom de clé devrait précéder =",
[ERROR_REDEFINITION] = "Redéfinition de %s (définition précédente à ligne %" PRIu64 ")",
+ [ERROR_NO_CLOSING_QUOTE] = "Aucun %c fermant",
};
static struct {