From e2e92e913db744ec1b6f108fa7d557afd89266ef Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 May 2014 18:59:53 +0000 Subject: Add TODO comment about future API break needed for better error reporting. git-svn-id: http://svn.drobilla.net/serd/trunk@461 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/writer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/writer.c b/src/writer.c index 69d51b53..7fa021cb 100644 --- a/src/writer.c +++ b/src/writer.c @@ -104,6 +104,12 @@ typedef enum { static void w_err(SerdWriter* writer, SerdStatus st, const char* fmt, ...) { + /* TODO: This results in errors with no file information, which is not + helpful when re-serializing a file (particularly for "undefined + namespace prefix" errors. The statement sink API needs to be changed to + add a Cursor parameter so the source can notify the writer of the + statement origin for better error reporting. */ + va_list args; va_start(args, fmt); const SerdError e = { st, NULL, 0, 0, fmt, &args }; -- cgit v1.2.1