Skip to content

Commit 619fc69

Browse files
arampricemkocher
authored andcommitted
Stembuild: error message quotes remote command value for clarity
Signed-off-by: Matthew Kocher <[email protected]>
1 parent c0b33d5 commit 619fc69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stembuild/iaas_cli/iaas_clients/guest_manager/guest_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (g *GuestManager) StartProgramInGuest(ctx context.Context, command, args st
5151

5252
pid, err := g.processManager.StartProgram(ctx, &g.auth, &spec)
5353
if err != nil {
54-
return -1, fmt.Errorf("vcenter_client - could not run process: %s on guest os, error: %s",
54+
return -1, fmt.Errorf("vcenter_client - could not run process: '%s' on guest os, error: %s",
5555
fmt.Sprintf("%s %s", command, args), err.Error())
5656
}
5757

stembuild/iaas_cli/iaas_clients/guest_manager/guest_manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var _ = Describe("GuestManager", func() {
4646
procManager.StartProgramReturns(int64(0), errors.New("You aint nothin but a hound dog"))
4747

4848
_, err := guestManager.StartProgramInGuest(ctx, "mkdir", "C:\\dummy")
49-
Expect(err).To(MatchError("vcenter_client - could not run process: mkdir C:\\dummy on guest os, error: You aint nothin but a hound dog"))
49+
Expect(err).To(MatchError("vcenter_client - could not run process: 'mkdir C:\\dummy' on guest os, error: You aint nothin but a hound dog"))
5050
})
5151
})
5252

0 commit comments

Comments
 (0)