aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-10 20:14:24 +0200
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commita14effc37415540b7b8a1dc6238b350566f273e1 (patch)
tree5291df350a08771824718a108a81060546f1bc2b /src/reader.c
parent6eb1fa15a06ab7de08e33add1540a45b83c5f0d8 (diff)
downloadserd-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.c3
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;
}