Commit 91a631b1 authored by Matthias Betz's avatar Matthias Betz
Browse files

add error message when failing to load gltf

parent 4a40a34b
No related merge requests found
Showing with 10 additions and 2 deletions
+10 -2
...@@ -167,10 +167,18 @@ function uploadModel() { ...@@ -167,10 +167,18 @@ function uploadModel() {
function ( error ) { function ( error ) {
app.notifier.add({ app.notifier.add({
type: NotificationType.ERROR, type: NotificationType.ERROR,
message: "Ein Fehler ist beim Laden der glTF Datei aufgetreten. Bitte vergewissern Sie sich, dass es sich um eine gültige glTF Datei handelt.", message: "Ein Fehler ist beim Laden der glTF Datei aufgetreten. Bitte vergewissern Sie sich, dass es sich um eine gültige glTF2.0 Datei handelt.",
timeout: 20000,
}); });
}, options); }, options);
}); }, undefined, function(error) {
app.notifier.add({
type: NotificationType.ERROR,
message: "Ein Fehler ist beim Laden der glTF Datei aufgetreten. Bitte vergewissern Sie sich, dass es sich um eine gültige glTF2.0 Datei handelt." +
" Fehlermeldung: " + error.message,
timeout: 20000,
});
});
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment