We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a6289 commit f682d5bCopy full SHA for f682d5b
examples/jsm/loaders/LDrawLoader.js
@@ -1974,7 +1974,7 @@ class LDrawLoader extends Loader {
1974
1975
}
1976
1977
- parse( text, onLoad ) {
+ parse( text, onLoad, onError ) {
1978
1979
this.partsCache
1980
.parseModel( text, this.materialLibrary )
@@ -1985,7 +1985,8 @@ class LDrawLoader extends Loader {
1985
group.userData.fileName = '';
1986
onLoad( group );
1987
1988
- } );
+ } )
1989
+ .catch( onError );
1990
1991
1992
0 commit comments