Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Return nil on program action if an error occurred
  • Loading branch information
cmaglie committed Aug 28, 2021
commit 4696d0787711491545e365202b0328e9c1a5afb0
8 changes: 6 additions & 2 deletions commands/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,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 @@ -142,7 +142,11 @@ func Upload(ctx context.Context, req *rpc.UploadRequest, outStream io.Writer, er
errStream,
req.GetDryRun(),
req.GetUserFields(),
)
); err != nil {
return nil, err
}

return &rpc.UploadResponse{}, nil
}

// UsingProgrammer FIXMEDOC
Expand Down