From 3ee5e87fc15363c104f08e61ba8ed0da76f97152 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Jun 2009 21:47:19 +0000 Subject: Consistent error/warning message output. Fix crash on invalid plugin files. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2086 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index 5b0d25a..bd38fd2 100644 --- a/src/world.c +++ b/src/world.c @@ -44,8 +44,8 @@ slv2_world_new_internal(SLV2World world) world->storage = librdf_new_storage(world->world, "trees", NULL, NULL); if (!world->storage) { - fprintf(stderr, "Warning: Unable to create \"trees\" RDF storage.\n" - "Performance can be improved by upgrading librdf.\n"); + SLV2_WARN("Warning: Unable to create \"trees\" RDF storage.\n" + "Performance can be improved by upgrading librdf.\n"); world->storage = librdf_new_storage(world->world, "hashes", NULL, "hash-type='memory'"); } @@ -177,7 +177,7 @@ void slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) { if (!slv2_value_is_uri(bundle_uri)) { - fprintf(stderr, "ERROR: slv2_world_load_bundle called with non-URI argument\n"); + SLV2_ERROR("Bundle 'URI' is not a URI\n"); return; } -- cgit v1.2.1