From d08a527dbf39c47244e9d7c94b19c55232af8a06 Mon Sep 17 00:00:00 2001 From: Benjamin Gregory Date: Fri, 1 Feb 2019 15:11:08 -0700 Subject: [PATCH] Fix envFile error message --- airflow/docker.go | 2 +- messages/messages.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/docker.go b/airflow/docker.go index 9344b8924..2a8b392df 100644 --- a/airflow/docker.go +++ b/airflow/docker.go @@ -90,7 +90,7 @@ func generateConfig(projectName, airflowHome string, envFile string) (string, er envExists, err := fileutil.Exists(envFile) if err != nil { - return "", errors.Wrap(err, messages.ENV_PATH) + return "", errors.Wrap(err, fmt.Sprintf(messages.ENV_PATH, envFile)) } if envFile != "" { diff --git a/messages/messages.go b/messages/messages.go index 75ec2073a..637029768 100644 --- a/messages/messages.go +++ b/messages/messages.go @@ -42,7 +42,7 @@ var ( COMPOSE_LINK_WEBSERVER = "Airflow Webserver: http://localhost:%s/admin/" COMPOSE_LINK_POSTGRES = "Postgres Database: localhost:%s/postgres" - ENV_PATH = "Error looking for .env" + ENV_PATH = "Error looking for \"%s\"" ENV_FOUND = "Env file \"%s\" found. Loading...\n" ENV_NOT_FOUND = "Env file \"%s\" not found. Skipping...\n"