Skip to content

Commit

Permalink
Avoid printing the error twice (#2530)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu committed Oct 6, 2021
1 parent 4783749 commit 3187fe3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions site/book/05-developing-functions/02-developing-in-Go.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ provided value:
package main

import (
"fmt"
"os"

"sigs.k8s.io/kustomize/kyaml/fn/framework"
Expand Down Expand Up @@ -61,7 +60,6 @@ func main() {
command.AddGenerateDockerfile(cmd)

if err := cmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
Expand Down

0 comments on commit 3187fe3

Please sign in to comment.