Skip to content

Commit

Permalink
Fix envFile error message
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingregory committed Feb 1, 2019
1 parent 14e03ec commit d08a527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down
2 changes: 1 addition & 1 deletion messages/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit d08a527

Please sign in to comment.