Commit 3d123ba3 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #16953 from swagiaal/print-cmd-in-fake-exec

Auto commit by PR queue bot
parents 0bb89417 d10d81d8
...@@ -31,7 +31,7 @@ type FakeCommandAction func(cmd string, args ...string) Cmd ...@@ -31,7 +31,7 @@ type FakeCommandAction func(cmd string, args ...string) Cmd
func (fake *FakeExec) Command(cmd string, args ...string) Cmd { func (fake *FakeExec) Command(cmd string, args ...string) Cmd {
if fake.CommandCalls > len(fake.CommandScript)-1 { if fake.CommandCalls > len(fake.CommandScript)-1 {
panic("ran out of Command() actions") panic(fmt.Sprintf("ran out of Command() actions. Could not handle command [%d]: %s args: %v", fake.CommandCalls, cmd, args))
} }
i := fake.CommandCalls i := fake.CommandCalls
fake.CommandCalls++ fake.CommandCalls++
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment