From 25ab99a4e29b587b6639f224bed4d5e4400cc4dd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 12 Sep 2021 00:54:24 -0400 Subject: [PATCH] chore: show a better error message when the image is missing Refs dokku/dokku-clickhouse#4 --- functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions b/functions index 0d0dc59..65341be 100755 --- a/functions +++ b/functions @@ -150,7 +150,11 @@ service_start() { elif service_image_exists "$SERVICE" && [[ -n "$PASSWORD" ]]; then service_create_container "$SERVICE" else - dokku_log_verbose_quiet "Neither container nor valid configuration exists for $SERVICE" + if ! service_image_exists "$SERVICE"; then + dokku_log_verbose_quiet "Missing image $PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION for $SERVICE" + else + dokku_log_verbose_quiet "Neither container nor valid configuration exists for $SERVICE" + fi fi }