--- a/src/modules/bugs/distributions/DSum.cc
+++ b/src/modules/bugs/distributions/DSum.cc
@@ -35,7 +35,7 @@
 	    s -= par[j][i];
 	}
 	if (fabs(s) > tol) {
-	    throwDistError(this, "Inconsistent arguments for logDensity");
+	    return JAGS_NEGINF;
 	}
     }
     return 0;