aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-05-19 18:59:53 +0000
committerDavid Robillard <d@drobilla.net>2014-05-19 18:59:53 +0000
commite2e92e913db744ec1b6f108fa7d557afd89266ef (patch)
tree9bac1a85cc3b3f5049ce8db32a2755aee909d8a0 /src/writer.c
parent5d363ca4f111bf6b0ce1506f269dda88b6e389ab (diff)
downloadserd-e2e92e913db744ec1b6f108fa7d557afd89266ef.tar.gz
serd-e2e92e913db744ec1b6f108fa7d557afd89266ef.tar.bz2
serd-e2e92e913db744ec1b6f108fa7d557afd89266ef.zip
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
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c6
1 files changed, 6 insertions, 0 deletions
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 };