diff options
author | pommicket <pommicket@gmail.com> | 2025-09-15 13:52:32 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-15 13:52:32 -0400 |
commit | ee88497b4451225c3140f56d98ebcbc166175407 (patch) | |
tree | 39cd720c4840c2872fb065088b91658ef6d8d3d1 /errors.c | |
parent | 969bf523b7039c7038b66edde5776278c27941ac (diff) |
Errors tests; fix some non-errors
Diffstat (limited to 'errors.c')
-rw-r--r-- | errors.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 { |