aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-14 01:03:00 +0200
committerDavid Robillard <d@drobilla.net>2018-12-31 11:37:47 -0500
commit12ef27529d86c581e7b38171fdcafd00cc691ef8 (patch)
tree23dc22d385e77527a9cb5c6b3a6d3fc195952a9c /src/serdi.c
parent59f20cd25fe9adddc2072e98edf2e8981e1aae42 (diff)
downloadserd-12ef27529d86c581e7b38171fdcafd00cc691ef8.tar.gz
serd-12ef27529d86c581e7b38171fdcafd00cc691ef8.tar.bz2
serd-12ef27529d86c581e7b38171fdcafd00cc691ef8.zip
Clean up reader error handling
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 276a7042..221dee73 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -295,7 +295,9 @@ main(int argc, char** argv)
status = serd_reader_start_file(reader, input, bulk_read);
}
- if (!status) {
+ if (status) {
+ SERDI_ERRORF("failed to start stream: %s\n", serd_strerror(status));
+ } else {
status = serd_reader_read_document(reader);
}