Skip to content

Commit

Permalink
fix assert messages that are not useful
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jul 26, 2017
1 parent e25714e commit 7408921
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/common/model/Atom.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define( function( require ) {
}, options );

assert && assert( MPConstants.ELECTRONEGATIVITY_RANGE.contains( options.electronegativity ),
'invalid electronegativity: ' + options.electronegativity );
'electronegativity out of range: ' + options.electronegativity );

// @public (read-only)
this.name = name;
Expand Down
4 changes: 2 additions & 2 deletions js/common/view/PlateNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ define( function( require ) {
this.plateHeight = options.plateHeight; // @public used in view layout

assert && assert ( options.polarity === 'negative' || options.polarity === 'positive' ,
'polarity must be "positive" or "negative"' );
'invalid polarity: ' + options.polarity );
assert && assert ( options.perspective === 'right' || options.perspective === 'left' ,
'perspective must be either "left" or "right"' );
'invalid perspective: ' + options.perspective );

Node.call( this );

Expand Down
2 changes: 1 addition & 1 deletion js/common/view/PolarityIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define( function( require ) {
}, options );

assert && assert ( options.polarity === 'negative' || options.polarity === 'positive' ,
'polarity must be "positive" or "negative"' );
'invalid polarity: ' + options.polarity );

Node.call( this );

Expand Down

0 comments on commit 7408921

Please sign in to comment.