node: clean up `UploadError`
This change better separates the different errors that can occur during an upload. It does this by:
- Separating the authorization error into its own enum and having a variant simply for that
- The
PacketLineerror was never constructed, so the error returned from theupload_pack::pktline::git_requestis now wrapped in this variant. - The error from
upload_pack::upload_packis now wrapped in anUploadPackvariant. - The
Iovariant is removed. - Other redundant variants are also removed.
1 file changed
+15
-13
db3b3b05
→
e965d9a2
modified crates/radicle-node/src/worker.rs
@@ -72,24 +72,26 @@ impl FetchError {
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
| - | |
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -243,7 +245,7 @@ impl Worker {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -252,7 +254,7 @@ impl Worker {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -267,7 +269,7 @@ impl Worker {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -278,18 +280,18 @@ impl Worker {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|