From fce4f0ed532b8d2753199f88cdaaa41dcbbf80f4 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 11 Mar 2021 08:39:24 +0100 Subject: Fix: Make error message more readable for humans Signed-off-by: Matthias Beyer Tested-by: Matthias Beyer --- src/commands/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/commands/build.rs b/src/commands/build.rs index 9880552..a7d4486 100644 --- a/src/commands/build.rs +++ b/src/commands/build.rs @@ -88,7 +88,7 @@ pub async fn build( return Err(anyhow!( "Requested build image {} is not in the configured images", image_name )) - .with_context(|| anyhow!("Available images: {:?}", config.docker().images())) + .with_context(|| anyhow!("Available images: {}", config.docker().images().iter().join(", "))) .with_context(|| anyhow!("Image present verification failed")) .map_err(Error::from); } -- cgit v1.2.3