chore: show a better error message when the image is missing

Refs dokku/dokku-clickhouse#4
This commit is contained in:
Jose Diaz-Gonzalez
2021-09-12 00:54:24 -04:00
parent 5b0dd26c73
commit 2e0e2db647

View File

@@ -150,7 +150,11 @@ service_start() {
elif service_image_exists "$SERVICE"; 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
}