aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c
index dfa80f06..bc8edd52 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -40,8 +40,10 @@ r_err(SerdReader* reader, SerdStatus st, const char* fmt, ...)
{
va_list args;
va_start(args, fmt);
- const SerdError e = { st, &reader->source.cur, fmt, &args };
- serd_world_error(reader->world, &e);
+ const SerdMessage msg = {
+ st, SERD_LOG_LEVEL_ERROR, &reader->source.cur, fmt, &args
+ };
+ serd_world_log(reader->world, &msg);
va_end(args);
return st;
}