summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/Serialiser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index ae1a6416..4a69d597 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -307,7 +307,11 @@ Serialiser::Impl::finish()
{
string ret = "";
if (_mode == TO_FILE) {
- _model->write_to_file(_base_uri, SERD_TURTLE);
+ SerdStatus st = _model->write_to_file(_base_uri, SERD_TURTLE);
+ if (st) {
+ LOG(error) << "Error writing file `" << _base_uri << "' ("
+ << serd_strerror(st) << ")" << std::endl;
+ }
} else {
ret = _model->write_to_string(_base_uri, SERD_TURTLE);
}