aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-30 03:16:28 +0000
committerDavid Robillard <d@drobilla.net>2011-04-30 03:16:28 +0000
commit34aa98fb074dcc7547b79b078d0faf9718a71b4d (patch)
treeb7412f24a7065fa75f8a62241f0a76edf0f41c9d /src/reader.c
parent253f6ba9c97328199f5b4c22d8e68a393abcf038 (diff)
downloadserd-34aa98fb074dcc7547b79b078d0faf9718a71b4d.tar.gz
serd-34aa98fb074dcc7547b79b078d0faf9718a71b4d.tar.bz2
serd-34aa98fb074dcc7547b79b078d0faf9718a71b4d.zip
Consistent error messages
git-svn-id: http://svn.drobilla.net/serd/trunk@152 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reader.c b/src/reader.c
index 3463c6df..8dec46c7 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -260,9 +260,9 @@ pop_string(SerdReader* reader, Ref ref)
}
#ifdef SERD_STACK_CHECK
if (!stack_is_top_string(reader, ref)) {
- fprintf(stderr, "attempt to pop non-top string %s\n",
+ fprintf(stderr, "Attempt to pop non-top string %s\n",
deref(reader, ref)->buf);
- fprintf(stderr, "top: %s\n",
+ fprintf(stderr, "... top: %s\n",
deref(reader, reader->alloc_stack[reader->n_allocs - 1])->buf);
}
assert(stack_is_top_string(reader, ref));
@@ -924,7 +924,7 @@ read_literal(SerdReader* reader, Node* dest)
}
*dest = make_node(SERD_LITERAL, str, datatype.value, lang);
} else {
- return error(reader, "Unknown literal type\n");
+ return error(reader, "unknown literal type\n");
}
return true;
except: