Permalink
Browse files

add more detailed debug message when num features is not correct

  • Loading branch information...
1 parent acf024d commit c24e62c14c47da39a84431af683cc4c04de7eb9f mguetlein committed Jun 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/data/DefaultFeatureComputer.java
@@ -94,7 +94,8 @@ public void computeFeatures(DatasetFile dataset)
s = p.getStringValues(dataset);
if ((d != null && d.length != numCompounds) || (s != null && s.length != numCompounds))
- throw new Error("illegal num features " + p);
+ throw new Error("illegal num features " + p + ", is:" + (d != null ? d.length : s.length)
+ + ", should be:" + numCompounds);
if (!TaskProvider.isRunning())
return;

0 comments on commit c24e62c

Please sign in to comment.