From f0433960119d79d8ea3864af94bad9ad125395bf Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sun, 13 Feb 2022 19:10:18 +0100 Subject: [PATCH] Detailed error message in case of the file is not available. --- source/website/threemodelloaderui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/website/threemodelloaderui.js b/source/website/threemodelloaderui.js index 97280b3..1172019 100644 --- a/source/website/threemodelloaderui.js +++ b/source/website/threemodelloaderui.js @@ -72,13 +72,13 @@ export class ThreeModelLoaderUI return ShowMessageDialog ( 'Something went wrong', 'No importable file found.', - importError.message + null ); } else if (importError.code === ImportErrorCode.FailedToLoadFile) { return ShowMessageDialog ( 'Something went wrong', 'Failed to load file for import.', - importError.message + 'The remote server refused to fulfill the request. Check if the url is correct, and make sure that CORS requests are allowed on the remote server.' ); } else if (importError.code === ImportErrorCode.ImportFailed) { return ShowMessageDialog ( @@ -90,7 +90,7 @@ export class ThreeModelLoaderUI return ShowMessageDialog ( 'Something went wrong', 'Unknown error.', - importError.message + null ); } }