Skip to content

Commit 828749d

Browse files
committed
frontend/dockerfile/dockerfile2llb: errmsg: quote build target
The build target is not quoted and it makes it difficult for some persons to see what the problem is. By quoting it we emphasize that the target name is variable. Signed-off-by: Frank Villaro-Dixon <[email protected]>
1 parent 1e403a7 commit 828749d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/dockerfile/dockerfile2llb/convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ func toDispatchState(ctx context.Context, dt []byte, opt ConvertOpt) (*dispatchS
317317
var ok bool
318318
target, ok = allDispatchStates.findStateByName(opt.Target)
319319
if !ok {
320-
return nil, errors.Errorf("target stage %s could not be found", opt.Target)
320+
return nil, errors.Errorf("target stage %q could not be found", opt.Target)
321321
}
322322
}
323323

0 commit comments

Comments
 (0)