Skip to content

Commit

Permalink
add err handling, avoid panic (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
EastonLee authored Mar 31, 2021
1 parent ab9cb9f commit 6e5e014
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpc/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ func toCoreBuildOptions(b *pb.BuildImageOptions) (*types.BuildOptions, error) {

func toCoreReplaceOptions(r *pb.ReplaceOptions) (*types.ReplaceOptions, error) {
deployOpts, err := toCoreDeployOptions(r.DeployOpt)
if err != nil {
return nil, err
}

replaceOpts := &types.ReplaceOptions{
DeployOptions: *deployOpts,
Expand Down

0 comments on commit 6e5e014

Please sign in to comment.