diff options
Diffstat (limited to 'src/serialisation/Serialiser.cpp')
-rw-r--r-- | src/serialisation/Serialiser.cpp | 6 |
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); } |