Skip to content

Commit

Permalink
Update wording in the validation error message, see phetsims/density#154
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 6, 2023
1 parent c185976 commit 1449876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/model/Mass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export default abstract class Mass extends PhetioObject {
const minAllowedMass = this.materialProperty.value.density * this.volumeProperty.range.min;

return isProposedVolumeInRange ? null :
`The proposed mass ${proposedMass} kg would result in a volume ${proposedVolume} m^3 that is out of range. At the current density, the allowed max range is (${minAllowedMass},${maxAllowedMass}) kg.`;
`The proposed mass ${proposedMass} kg would result in a volume ${proposedVolume} m^3 that is out of range. At the current density, the allowed range is [${minAllowedMass}, ${maxAllowedMass}] kg.`;
}
}, config.massPropertyOptions ) );

Expand Down

0 comments on commit 1449876

Please sign in to comment.