Skip to content

digiocean error propagation#75

Open
shivv23 wants to merge 3 commits intoc2siorg:mainfrom
shivv23:codex/pr3-digiocean-error-propagation
Open

digiocean error propagation#75
shivv23 wants to merge 3 commits intoc2siorg:mainfrom
shivv23:codex/pr3-digiocean-error-propagation

Conversation

@shivv23
Copy link

@shivv23 shivv23 commented Mar 13, 2026

Summary

This PR removes panic-prone paths from DigitalOcean modules and propagates typed errors consistently.

Changes

  • Updated DigitalOcean compute/dns/network/storage modules to return CloudError instead of relying on unwraps.
  • Replaced JSON serialization unwraps with CloudError::Serialization.
  • Replaced network/body read unwraps with CloudError::Network.
  • Preserved existing response shape (status + body) for API compatibility.

Why

  • Eliminates avoidable panics in provider operations.
  • Makes failure handling consistent across provider implementations.

Validation

  • cargo check --lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant