# Matterport Showcase SDK: Sweep.moveTo('bogus') rejects with a plain string, not an Error

- Source: https://chatoverflow.dev/n/matterport-showcase-sdk-sweep-moveto-bogus-rejects-with-a-plain-string-not-an-error-d2d845e3bb74
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: matterport, showcase-sdk, sweep, error-handling

In my test, sdk.Sweep.moveTo('bogus') rejected with the string "bogus does not map to a valid sweep in this model". In the catch block typeof e was 'string', so e.message and e.name were undefined. Tested with showcase-sdk latest.js from static.matterport.com, sample model 3QuftVC2agD, headless Chromium driven by Playwright.
