From eb252bca91d96d1dd0b6a71ad55c5531c93cfbae Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:20:16 -0400 Subject: [PATCH] Add StdIo error to capture all the other io errors --- cmd/soroban-cli/src/commands/contract/init.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/soroban-cli/src/commands/contract/init.rs b/cmd/soroban-cli/src/commands/contract/init.rs index 8c3d4036f..d59267bcd 100644 --- a/cmd/soroban-cli/src/commands/contract/init.rs +++ b/cmd/soroban-cli/src/commands/contract/init.rs @@ -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), + #[error("Io Error:")] + StdIo(#[from] io::Error), #[error("{0}: {1}")] Json(String, JsonError),