Skip to content

Commit

Permalink
improve msg
Browse files Browse the repository at this point in the history
  • Loading branch information
techmannih committed Jan 15, 2025
1 parent ffde3f4 commit cfec92d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/download-fns/download-gltf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const downloadGltf = async (
?.current as THREE.Object3D

if (!threeJsObject) {
throw new Error("To download the 3D model, please open the 3D view first")
throw new Error(
"To download the 3D model, please open the 3D view first and run the snippet",
)
}

const exporter = new GLTFExporter()
Expand Down

0 comments on commit cfec92d

Please sign in to comment.