Skip to content

Commit

Permalink
return err instead of exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestc committed Apr 16, 2018
1 parent 5f57d8e commit d2542ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func setupSidecar(dockerClient *docker.Client, config Config) (*docker.Sidecar,
}
err = sideCar.UploadToPrimaryContainer(context.Background(), config.InputFile)
if err != nil {
fatalf("failed to upload input file: %v", err)
return nil, fmt.Errorf("failed to upload input file: %v", err)
}
return sideCar, nil
}
Expand Down

0 comments on commit d2542ee

Please sign in to comment.