diff options
-rw-r--r-- | common.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -969,9 +969,11 @@ config_tokenizer_error (struct config_tokenizer *self, if (self->report_line) error_set (e, "near line %u, column %u: %s", self->line + 1, self->column + 1, description.str); - else + else if (self->len) error_set (e, "near character %u: %s", self->column + 1, description.str); + else + error_set (e, "near end: %s", description.str); str_free (&description); } |