Skip to content

Commit

Permalink
retouch admonition (#25582)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycw committed Feb 28, 2023
1 parent 351d788 commit 1b818ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/materials/Material.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Material extends EventDispatcher {

if ( newValue === undefined ) {

console.warn( 'THREE.Material: \'' + key + '\' parameter is undefined.' );
console.warn( `THREE.Material: parameter '${ key }' has value of undefined.` );
continue;

}
Expand All @@ -127,7 +127,7 @@ class Material extends EventDispatcher {

if ( currentValue === undefined ) {

console.warn( 'THREE.' + this.type + ': \'' + key + '\' is not a property of this material.' );
console.warn( `THREE.Material: '${ key }' is not a property of THREE.${ this.type }.` );
continue;

}
Expand Down

0 comments on commit 1b818ae

Please sign in to comment.