atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

[Memo] Confusing error message about ReplicaId #167

Closed probablycorey closed 5 years ago

probablycorey commented 5 years ago

If the replicaId send to WorkTree.create isn't a 16 byte hex string I get a cryptic error.

Failed: "invalid length: expected one of [36, 32], found 40 at line 1 column 42". It took a little digging to figure out what was needed.

/cc @as-cii

as-cii commented 5 years ago

Thanks for the report, @probablycorey. Apologies for the cryptic message. The improved error message has been released as part of v0.11.2.