Skip to content

Commit

Permalink
Return nil on program action if an error occurred
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Aug 10, 2021
1 parent 0c1b993 commit c04a3d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions commands/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Upload(ctx context.Context, req *rpc.UploadRequest, outStream io.Writer, er

pm := commands.GetPackageManager(req.GetInstance().GetId())

return &rpc.UploadResponse{}, runProgramAction(
if err := runProgramAction(
pm,
sk,
req.GetImportFile(),
Expand All @@ -70,7 +70,11 @@ func Upload(ctx context.Context, req *rpc.UploadRequest, outStream io.Writer, er
outStream,
errStream,
req.GetDryRun(),
)
); err != nil {
return nil, err
}

return &rpc.UploadResponse{}, nil
}

// UsingProgrammer FIXMEDOC
Expand Down

0 comments on commit c04a3d7

Please sign in to comment.