Skip to content

Commit

Permalink
add assertion message #210
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Oct 11, 2017
1 parent eff22a5 commit 3545505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/concentration/model/ConcentrationSolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ define( function( require ) {
var solventGrams = volume * self.solvent.density;
percentConcentration = 100 * ( soluteGrams / ( soluteGrams + solventGrams ) );
}
assert && assert( percentConcentration >= 0 && percentConcentration <= 100 );
assert && assert( percentConcentration >= 0 && percentConcentration <= 100,
'percentConcentration out of range: ' + percentConcentration );
return percentConcentration;
}, {
tandem: tandem.createTandem( 'percentConcentrationProperty' ),
Expand Down

0 comments on commit 3545505

Please sign in to comment.