Skip to content

Commit 6aaaa76

Browse files
authored
Merge pull request #118 from overbool/fix/timeout-error
fix(option): print error message for error timeout option
2 parents 7dca5f3 + 14ea818 commit 6aaaa76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/run.go

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func Run(ctx context.Context, root *cmds.Command,
3939
if timeoutStr, ok := req.Options[cmds.TimeoutOpt]; ok {
4040
timeout, err := time.ParseDuration(timeoutStr.(string))
4141
if err != nil {
42+
printErr(err)
4243
return err
4344
}
4445
req.Context, cancel = context.WithTimeout(req.Context, timeout)

0 commit comments

Comments
 (0)