Skip to content

Commit

Permalink
Improve error message for 3D model download when 3D viewer is not open (
Browse files Browse the repository at this point in the history
#574)

* fix error msg

* format code

* improve msg
  • Loading branch information
techmannih authored Jan 15, 2025
1 parent 6f7b862 commit 3596ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/download-fns/download-gltf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
}

Expand Down

0 comments on commit 3596ee6

Please sign in to comment.