release 0.9.6
[debian/openrocket] / src / net / sf / openrocket / util / MathUtil.java
index a40742cbbab300c131eb5063d5959ebc9c4ba41f..d53ecad726181b966701726abc32c24858c4836f 100644 (file)
@@ -73,7 +73,9 @@ public class MathUtil {
                if (equals(toMin, toMax))
                        return toMin;
                if (equals(fromMin, fromMax)) {
-                       throw new IllegalArgumentException("from range is singular and to range is not.");
+                       throw new IllegalArgumentException("from range is singular and to range is not: "+
+                                       "value=" + value + " fromMin=" + fromMin + " fromMax=" + fromMax +
+                                       "toMin=" + toMin + " toMax=" + toMax);
                }
                return (value - fromMin)/(fromMax-fromMin) * (toMax - toMin) + toMin;
        }