This is an automated email from the ASF dual-hosted git repository.
dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-go.git
The following commit(s) were added to refs/heads/master by this push:
new e6e45e1 Rewrord error message on failed init (#131)
e6e45e1 is described below
commit e6e45e109c6632e6f2b0925ff91a58b0425c28f9
Author: dengliming <[email protected]>
AuthorDate: Fri Sep 25 21:11:56 2020 +0800
Rewrord error message on failed init (#131)
---
openwhisk/executor.go | 2 +-
openwhisk/executor_test.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/openwhisk/executor.go b/openwhisk/executor.go
index 2744738..233f3cf 100644
--- a/openwhisk/executor.go
+++ b/openwhisk/executor.go
@@ -182,7 +182,7 @@ func (proc *Executor) Start(waitForAck bool) error {
return err
// process exited
case <-proc.exited:
- return fmt.Errorf("command exited before ack")
+ return fmt.Errorf("Command exited abruptly during
initialization.")
}
}
diff --git a/openwhisk/executor_test.go b/openwhisk/executor_test.go
index bae8962..597643d 100644
--- a/openwhisk/executor_test.go
+++ b/openwhisk/executor_test.go
@@ -105,7 +105,7 @@ func ExampleNewExecutor_ack() {
proc.Stop()
dump(log)
// Output:
- // command exited before ack
+ // Command exited abruptly during initialization.
// hi
}