Skip to content

Commit

Permalink
Changed an error to an assertion that prints out the type of unexpect…
Browse files Browse the repository at this point in the history
…ed particle. See phetsims/build-a-nucleus#18.
  • Loading branch information
Luisav1 committed Jun 9, 2022
1 parent a6740d3 commit dabef4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/model/ParticleAtom.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class ParticleAtom extends PhetioObject {

}
else {
throw new Error( 'Unexpected particle type.' );
assert && assert( false, 'Unexpected particle type ' + particle.type );
}
}

Expand Down

0 comments on commit dabef4e

Please sign in to comment.