aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-03-06 20:46:15 -0500
committerDavid Robillard <d@drobilla.net>2018-03-06 20:46:15 -0500
commit88879b2150341a6b2b6f89c9ed95f2e65d4aaeaf (patch)
tree249ed0336d5a47e396e1becc55b2a73f048ddedf /src
parentf5b10932653b8f1c41acbd7c174e26e6eba21aaa (diff)
downloadserd-88879b2150341a6b2b6f89c9ed95f2e65d4aaeaf.tar.gz
serd-88879b2150341a6b2b6f89c9ed95f2e65d4aaeaf.tar.bz2
serd-88879b2150341a6b2b6f89c9ed95f2e65d4aaeaf.zip
Abort on write error
Diffstat (limited to 'src')
-rw-r--r--src/writer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c
index 58cf17ee..36fb4d07 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -733,7 +733,7 @@ serd_writer_write_statement(SerdWriter* writer,
++writer->indent;
}
write_sep(writer, SEP_END_O);
- write_node(writer, object, datatype, lang, FIELD_OBJECT, flags);
+ TRY(write_node(writer, object, datatype, lang, FIELD_OBJECT, flags));
if (!(flags & SERD_ANON_O_BEGIN)) {
--writer->indent;
}
@@ -742,7 +742,7 @@ serd_writer_write_statement(SerdWriter* writer,
Sep sep = writer->context.predicate.type ? SEP_END_P : SEP_S_P;
write_sep(writer, sep);
write_pred(writer, flags, predicate);
- write_node(writer, object, datatype, lang, FIELD_OBJECT, flags);
+ TRY(write_node(writer, object, datatype, lang, FIELD_OBJECT, flags));
}
} else {
// No abbreviation
@@ -757,7 +757,7 @@ serd_writer_write_statement(SerdWriter* writer,
}
if (!(flags & SERD_ANON_CONT)) {
- write_node(writer, subject, NULL, NULL, FIELD_SUBJECT, flags);
+ TRY(write_node(writer, subject, NULL, NULL, FIELD_SUBJECT, flags));
++writer->indent;
write_sep(writer, SEP_S_P);
} else {
@@ -771,7 +771,7 @@ serd_writer_write_statement(SerdWriter* writer,
write_pred(writer, flags, predicate);
}
- write_node(writer, object, datatype, lang, FIELD_OBJECT, flags);
+ TRY(write_node(writer, object, datatype, lang, FIELD_OBJECT, flags));
}
if (flags & (SERD_ANON_S_BEGIN|SERD_ANON_O_BEGIN)) {