chiark / gitweb /
copyright dates
[disorder] / lib / trackname.c
index c439fa4d639e083ae9c98539a6fd8f251451ac2d..93c7b3e7c86e8ec5848124821e047b130d95b0de 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder
- * Copyright (C) 2005, 2006 Richard Kettlewell
+ * Copyright (C) 2005, 2006, 2007 Richard Kettlewell
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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 */