summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-06 16:29:22 +0000
committerDavid Robillard <d@drobilla.net>2011-09-06 16:29:22 +0000
commitce1d4bd5cc4c1f22a613cbf7bf392c6266a4e7f5 (patch)
tree1416968f53538c3e2be4799d4b04da3320461e8d /src/serialisation
parent2df0584dccb3654811f5c278b61f3a8b2c8c74ca (diff)
downloadingen-ce1d4bd5cc4c1f22a613cbf7bf392c6266a4e7f5.tar.gz
ingen-ce1d4bd5cc4c1f22a613cbf7bf392c6266a4e7f5.tar.bz2
ingen-ce1d4bd5cc4c1f22a613cbf7bf392c6266a4e7f5.zip
Report serialisation errors
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3458 a436a847-0d15-0410-975c-d299462d15a1
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);
}