From ce1d4bd5cc4c1f22a613cbf7bf392c6266a4e7f5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 6 Sep 2011 16:29:22 +0000 Subject: Report serialisation errors git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3458 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Serialiser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/serialisation') 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); } -- cgit v1.2.1