Skip to content

Commit 7703e14

Browse files
Return error when bundle run fails to start a job (#2843)
## Why We overlooked returning the error itself when starting a job run. This PR fixes that.
1 parent 0bbc676 commit 7703e14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bundle/run/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (r *jobRunner) Run(ctx context.Context, opts *Options) (output.RunOutput, e
188188

189189
waiter, err := w.Jobs.RunNow(ctx, *req)
190190
if err != nil {
191-
return nil, errors.New("cannot start job")
191+
return nil, fmt.Errorf("cannot start job: %w", err)
192192
}
193193

194194
if opts.NoWait {

0 commit comments

Comments
 (0)