Browse Source

Use alert to make users more aware of errors

gero3 5 years ago
parent
commit
159da0de8e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/js/Loader.js

+ 2 - 2
editor/js/Loader.js

@@ -232,7 +232,7 @@ var Loader = function ( editor ) {
 
 					if ( isGLTF1( contents ) ) {
 
-						console.error( 'Import of glTF asset not possible. Only versions >= 2.0 are supported. Please try to upgrade the file to glTF 2.0 using glTF-Pipeline.' );
+						alert( 'Import of glTF asset not possible. Only versions >= 2.0 are supported. Please try to upgrade the file to glTF 2.0 using glTF-Pipeline.' );
 
 					} else {
 
@@ -303,7 +303,7 @@ var Loader = function ( editor ) {
 
 					} catch ( error ) {
 
-						console.error( error );
+						alert( error );
 						return;
 
 					}