diff --git a/packages/server/src/utils/docker/domain.ts b/packages/server/src/utils/docker/domain.ts index 3cb37328e..86ed1e86c 100644 --- a/packages/server/src/utils/docker/domain.ts +++ b/packages/server/src/utils/docker/domain.ts @@ -164,10 +164,12 @@ export const addDomainToCompose = async ( for (const domain of domains) { const { serviceName, https } = domain; if (!serviceName) { - throw new Error("Service name not found"); + throw new Error(`Domain "${domain.host}" is missing a service name`); } if (!result?.services?.[serviceName]) { - throw new Error(`The service ${serviceName} not found in the compose`); + throw new Error( + `Domain "${domain.host}" is attached to service "${serviceName}" which does not exist in the compose`, + ); } const httpLabels = createDomainLabels(appName, domain, "web");