diff options
author | David Robillard <d@drobilla.net> | 2011-02-17 19:25:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-17 19:25:44 +0000 |
commit | 0ff53904cba4e3712c2adf937d64731fa205bb2c (patch) | |
tree | 049fb9a45a7d58807fbd4568656b477792b94cca /src | |
parent | 872d11e44fe676f24168fa3e8b6b76b003982a0e (diff) | |
download | lilv-0ff53904cba4e3712c2adf937d64731fa205bb2c.tar.gz lilv-0ff53904cba4e3712c2adf937d64731fa205bb2c.tar.bz2 lilv-0ff53904cba4e3712c2adf937d64731fa205bb2c.zip |
Error reporting.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2981 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/world.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/world.c b/src/world.c index e5d70f1..26048c7 100644 --- a/src/world.c +++ b/src/world.c @@ -373,13 +373,17 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) SLV2Node binary = slv2_node_copy(slv2_match_object(binaries)); const uint8_t* lib_uri = sord_node_get_string(binary); const char* lib_path = slv2_uri_to_path((const char*)lib_uri); - if (!lib_path) + if (!lib_path) { + SLV2_ERROR("No dynamic manifest library path\n"); continue; + } // Open library void* lib = dlopen(lib_path, RTLD_LAZY); - if (!lib) + if (!lib) { + SLV2_ERRORF("Failed to open dynamic manifest library `%s'\n", lib_path); continue; + } // Open dynamic manifest typedef int (*OpenFunc)(LV2_Dyn_Manifest_Handle*, const LV2_Feature *const *); |