mirror of
https://github.com/storytold/filmcraft.git
synced 2026-10-27 11:38:28 -06:00
readFile (missing path), importUrl and openProject (HTTP errors) and openProject (neither a File
nor a URL) rejected with plain strings, so e.message was undefined and e instanceof Error false,
unlike execute / request. Their promises now go through as_error, which wraps a string in an Error
and passes an Error through unchanged.
Checked in Chrome against the web build: all four cases reject with an Error carrying the message
("/files/nope.mp4: not found", "…: HTTP 404", "need a File or URL").
Fixes #90
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>