libsql-js icon indicating copy to clipboard operation
libsql-js copied to clipboard

Improve error message for "Sync not yet implemented"

Open notrab opened this issue 8 months ago • 0 comments

When attempting to use offline writes with sqld, the following error is returned:

Syncing database ...
thread '<unnamed>' panicked at src/errors.rs:22:13:
not yet implemented: err = Sync(PullFrame(404, ""))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[1]    47439 abort      node index.mjs

You can somewhat decipher with the "not yet implemented" error that this isn't using a version of turso-server, because we know it's implemented but it wasn't immediately clear. We can do provide a better message here.

notrab avatar Mar 24 '25 10:03 notrab