diff options
author | David Robillard <d@drobilla.net> | 2018-05-10 20:14:24 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | a14effc37415540b7b8a1dc6238b350566f273e1 (patch) | |
tree | 5291df350a08771824718a108a81060546f1bc2b /src/reader.c | |
parent | 6eb1fa15a06ab7de08e33add1540a45b83c5f0d8 (diff) | |
download | serd-a14effc37415540b7b8a1dc6238b350566f273e1.tar.gz serd-a14effc37415540b7b8a1dc6238b350566f273e1.tar.bz2 serd-a14effc37415540b7b8a1dc6238b350566f273e1.zip |
Move error handling to world
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c index c2c20b82..83f13e8c 100644 --- a/src/reader.c +++ b/src/reader.c @@ -8,6 +8,7 @@ #include "serd_internal.h" #include "stack.h" #include "system.h" +#include "world.h" #include "serd/stream.h" #include "serd/uri.h" @@ -28,7 +29,7 @@ r_err(SerdReader* const reader, const SerdStatus st, const char* const fmt, ...) va_start(args, fmt); const Cursor* const cur = &reader->source.cur; const SerdError e = {st, cur->filename, cur->line, cur->col, fmt, &args}; - serd_error(reader->world, &e); + serd_world_error(reader->world, &e); va_end(args); return st; } |