Catch-all error for all errors that will be able to come up during handling of backup requests. For now it only has errors for blob client, but it will be expanded in the future diffs.
Details
Details
- Reviewers
bartek • patryk • jon - Commits
- rCOMM629559dad170: [backup] Introduce backup error
Create a service:
.service(web::resource("/hello").route(web::get().to( |blob: web::Data<BlobServiceClient>| async move { let _ = blob.get("asdasd").await.map_err(BackupError::from)?; Ok::<&str, BackupError>("world") }, )))
Test a few different scenarios: blob error not available (not running), blob not existing
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
services/backup/src/error.rs | ||
---|---|---|
28 | Btw - have you tested {err} vs {err:?} ? - Sometimes Debug is more meaningful and sometimes Display - I've never found a single good way. |