diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/container.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/container.rs b/src/container.rs index dfd65d2..ad26238 100644 --- a/src/container.rs +++ b/src/container.rs @@ -365,9 +365,8 @@ impl<'docker> Container<'docker> { .skip(1) .collect::<std::path::PathBuf>(), bytes, - ) - .unwrap(); - let data = ar.into_inner().unwrap(); + )?; + let data = ar.into_inner()?; self.copy_to(Path::new("/"), data.into()).await?; Ok(()) |