spacedriveapp / spacedrive

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.
https://spacedrive.com
GNU Affero General Public License v3.0
29.34k stars 835 forks source link

spacedrop() is missing error handling #2468

Closed julianbraha closed 1 month ago

julianbraha commented 1 month ago

Describe the bug

Currently, spacedrop() returns a Result<Uuid, ()> with several TODO comments to improve error handling:

  1. // TODO: Proper error
  2. // TODO: Proper error
  3. // TODO: Proper error type
  4. // TODO: Proper error handling

Reproduction

No response

Expected behavior

No response

Platform and versions

9.1.0
cargo 1.78.0 (54d8815d0 2024-03-26)
rustc 1.78.0 (9b00956e5 2024-04-29)

Stack trace

No response

Additional context

No response