Skip to content

Commit

Permalink
Add StdIo error to capture all the other io errors
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Sep 5, 2024
1 parent b0e0e5e commit eb252bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/soroban-cli/src/commands/contract/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ pub enum Error {
#[error("{0}: {1}")]
Io(String, io::Error),

// the gix::clone::Error is too large to include in the error enum as is, so we wrap it in a Box
#[error("Failed to clone repository: {0}")]
CloneError(#[from] Box<clone::Error>),
#[error("Io Error:")]
StdIo(#[from] io::Error),

#[error("{0}: {1}")]
Json(String, JsonError),
Expand Down

0 comments on commit eb252bc

Please sign in to comment.