automerge/rust/automerge
Alex Good 0ab6a770d8 wasm: improve error messages
The error messages produced by various conversions in `automerge-wasm`
were quite uninformative - often consisting of just returning the
offending value with no description of the problem. The logic of these
error messages was often hard to trace due to the use of `JsValue` to
represent both error conditions and valid values - evidenced by most of
the public functions of `automerge-wasm` having return types of
`Result<JsValue, JsValue>`. Change these return types to mention
specific errors, thus enlisting the compilers help in ensuring that
specific error messages are emitted.
2022-12-02 14:42:55 +00:00
..
benches Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
examples Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
src wasm: improve error messages 2022-12-02 14:42:55 +00:00
tests Move automerge/tests::helpers to crate automerge-test 2022-11-06 19:52:21 +00:00
.gitignore Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
Cargo.toml rust:automerge:0.2.0 2022-11-27 16:44:26 +00:00