automerge/rust/automerge/src
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
..
automerge Explicity create empty changes 2022-12-02 12:12:54 +00:00
columnar Ritual obeisance before the altar of clippy 2022-11-05 22:48:43 +00:00
legacy Ritual obeisance before the altar of clippy 2022-11-05 22:48:43 +00:00
op_set Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
op_tree Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
query Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
storage Ritual obeisance before the altar of clippy 2022-11-05 22:48:43 +00:00
sync Dont send duplicate sync messages (#460) 2022-11-22 18:29:06 +00:00
transaction Explicity create empty changes 2022-12-02 12:12:54 +00:00
types Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
autocommit.rs Explicity create empty changes 2022-12-02 12:12:54 +00:00
automerge.rs Explicity create empty changes 2022-12-02 12:12:54 +00:00
autoserde.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
change.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
clock.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
clocks.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
columnar.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
convert.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
decoding.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
error.rs fix error message 2022-11-28 15:43:27 -06:00
exid.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
indexed_cache.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
keys.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
keys_at.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
lib.rs wasm: improve error messages 2022-12-02 14:42:55 +00:00
list_range.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
list_range_at.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
map_range.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
map_range_at.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
op_observer.rs rust: Remove Default constraint from OpObserver 2022-12-02 12:12:54 +00:00
op_set.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
op_tree.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
parents.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
query.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
sequence_tree.rs automerge-wasm: Use a SequenceTree in the OpObserver 2022-11-22 12:13:42 +00:00
storage.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
sync.rs wasm: improve error messages 2022-12-02 14:42:55 +00:00
transaction.rs rust: Make fields of Transaction and TransactionInner private 2022-12-02 12:12:54 +00:00
types.rs Ritual obeisance before the altar of clippy 2022-11-05 22:48:43 +00:00
value.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
values.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00
visualisation.rs Move rust workspace into ./rust 2022-10-16 19:55:51 +01:00