Skip to content

Commit

Permalink
add basic error handling messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andscoop committed Feb 15, 2018
1 parent 0bd947c commit c24b1f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions airflow/docker.go
Expand Up @@ -96,7 +96,7 @@ func Start(airflowHome string) error {

project, err := createProjectFromContext(projectName, airflowHome)
if err != nil {
return err
return errors.Wrap(err, "Error creating docker-compose project")
}

// Build this project image
Expand All @@ -105,7 +105,7 @@ func Start(airflowHome string) error {
// Start up our project
err = project.Up(context.Background(), options.Up{})
if err != nil {
return err
return errors.Wrap(err, "Error building, (re)creating or starting project containers")
}

return nil
Expand All @@ -118,13 +118,13 @@ func Stop(airflowHome string) error {

project, err := createProjectFromContext(projectName, airflowHome)
if err != nil {
return err
return errors.Wrap(err, "Error creating docker-compose project")
}

// Shut down our project
err = project.Down(context.Background(), options.Down{RemoveVolume: true})
if err != nil {
return err
return errors.Wrap(err, "Error stopping and removing containers")
}

return nil
Expand Down

0 comments on commit c24b1f3

Please sign in to comment.