From 3596ee6fd1efde15c47610fc481881d8ffec7b74 Mon Sep 17 00:00:00 2001 From: Manish chaudhary <125847751+techmannih@users.noreply.github.com> Date: Thu, 16 Jan 2025 01:26:57 +0530 Subject: [PATCH] Improve error message for 3D model download when 3D viewer is not open (#574) * fix error msg * format code * improve msg --- src/lib/download-fns/download-gltf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/download-fns/download-gltf.ts b/src/lib/download-fns/download-gltf.ts index 8ffbdfc7..b8abb15b 100644 --- a/src/lib/download-fns/download-gltf.ts +++ b/src/lib/download-fns/download-gltf.ts @@ -13,7 +13,7 @@ export const downloadGltf = async ( if (!threeJsObject) { throw new Error( - "No 3D object found, run the snippet before downloading the 3d model", + "To download the 3D model, please open the 3D view first and run the snippet", ) }