Skip to content

Commit 88ec455

Browse files
authored
Merge pull request #2487 from thaJeztah/fix_compilation_issues_on_go1.11
Fix compilation failures on Go 1.11
2 parents 92d147e + 65ef831 commit 88ec455

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

windows/process.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (p *process) HcsPid() uint32 {
121121

122122
func (p *process) ExitCode() (uint32, time.Time, error) {
123123
if s := p.Status(); s != runtime.StoppedStatus && s != runtime.CreatedStatus {
124-
return 255, time.Time{}, errors.Wrapf(errdefs.ErrFailedPrecondition, "process is not stopped: %s", s)
124+
return 255, time.Time{}, errors.Wrapf(errdefs.ErrFailedPrecondition, "process is not stopped: %d", s)
125125
}
126126
return p.exitCode, p.exitTime, nil
127127
}

windows/task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func (t *task) Update(ctx context.Context, resources *types.Any) error {
284284
func (t *task) Process(ctx context.Context, id string) (p runtime.Process, err error) {
285285
p = t.getProcess(id)
286286
if p == nil {
287-
err = errors.Wrapf(errdefs.ErrNotFound, "no such process %d", id)
287+
err = errors.Wrapf(errdefs.ErrNotFound, "no such process %s", id)
288288
}
289289

290290
return p, err
@@ -297,7 +297,7 @@ func (t *task) Stats(ctx context.Context) (*types.Any, error) {
297297
func (t *task) Wait(ctx context.Context) (*runtime.Exit, error) {
298298
p := t.getProcess(t.id)
299299
if p == nil {
300-
return nil, errors.Wrapf(errdefs.ErrNotFound, "no such process %d", t.id)
300+
return nil, errors.Wrapf(errdefs.ErrNotFound, "no such process %s", t.id)
301301
}
302302
return p.Wait(ctx)
303303
}

0 commit comments

Comments
 (0)