chiark / gitweb /
find_track_root() now issues a log message if it finds a track outside
[disorder] / lib / trackname.c
index c439fa4d639e083ae9c98539a6fd8f251451ac2d..cef77b85ee6ca5ad71206f823b2c6cadf57fa6ef 100644 (file)
@@ -44,7 +44,10 @@ const char *find_track_root(const char *track) {
        && track[l] == '/')
       break;
   }
-  if(n >= config->collection.n) return 0;
+  if(n >= config->collection.n) {
+    error(0, "found track in no collection '%s'", track);
+    return 0;
+  }
   return config->collection.s[n].root;
 }
 
@@ -141,4 +144,3 @@ comment-column:40
 fill-column:79
 End:
 */
-/* arch-tag:xMbRRluU86PaVSSnyIR77A */