diff options
author | David Robillard <d@drobilla.net> | 2015-10-04 19:28:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-10-04 19:28:20 +0000 |
commit | 1bdcf3843770e085adbb7d665153b7a4d6ee7b7b (patch) | |
tree | b31c74f3e9f37915a42d42d69736af3528dad9a6 /src/state.c | |
parent | 464659f73bddf4a7d7b254ca3191cc1bf6dc9a31 (diff) | |
download | lilv-1bdcf3843770e085adbb7d665153b7a4d6ee7b7b.tar.gz lilv-1bdcf3843770e085adbb7d665153b7a4d6ee7b7b.tar.bz2 lilv-1bdcf3843770e085adbb7d665153b7a4d6ee7b7b.zip |
Improve test coverage
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5742 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c index a29581a..ccc1b22 100644 --- a/src/state.c +++ b/src/state.c @@ -1,5 +1,5 @@ /* - Copyright 2007-2014 David Robillard <http://drobilla.net> + Copyright 2007-2015 David Robillard <http://drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -231,7 +231,11 @@ abstract_path(LV2_State_Map_Path_Handle handle, if (!copy || !lilv_file_equals(real_path, copy)) { // No recent enough copy, make a new one copy = lilv_find_free_path(cpath, lilv_path_exists, NULL); - lilv_copy_file(real_path, copy); + const int st = lilv_copy_file(real_path, copy); + if (st) { + LILV_ERRORF("Error copying state file %s (%s)\n", + copy, strerror(st)); + } } free(real_path); free(cpath); |