diff options
Diffstat (limited to 'src/serialisation/Parser.cpp')
-rw-r--r-- | src/serialisation/Parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index e6e3f2c9..6a8547c5 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -615,11 +615,11 @@ Parser::parse_file(Ingen::World* world, target->set_property(Node::path_to_uri(*parsed_path), Raul::URI(INGEN__file), world->forge().alloc_uri(uri)); + return true; } else { world->log().warn("Document URI lost\n"); + return false; } - - return parsed_path; } bool @@ -642,7 +642,7 @@ Parser::parse_string(Ingen::World* world, world->log().info(fmt("Parsing string (base %1%)\n") % base_uri); Sord::Node subject; - return parse(world, target, model, base_uri, subject, parent, symbol, data); + return !!parse(world, target, model, base_uri, subject, parent, symbol, data); } } // namespace Serialisation |