From a4f6754a4048f2bcb04482938d5a98e9ab77d4fc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 May 2018 20:14:24 +0200 Subject: Move error handling to world --- src/reader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/reader.c') diff --git a/src/reader.c b/src/reader.c index 640fb12b..cfc43685 100644 --- a/src/reader.c +++ b/src/reader.c @@ -19,6 +19,7 @@ #include "serd_internal.h" #include "stack.h" #include "system.h" +#include "world.h" #include #include @@ -36,7 +37,7 @@ r_err(SerdReader* reader, SerdStatus st, const char* 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; } -- cgit v1.2.1