Skip to content

Commit

Permalink
x/gopproj: handleEvent OnErr no dump error
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Jan 19, 2022
1 parent e7b7bbc commit d5e4a05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func gopRun(args []string) {
}
ctx, goProj, err := gopproj.OpenProject(flags, proj)
if err != nil {
fmt.Fprintf(os.Stderr, "OpenProject failed: %v\n", err)
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
goProj.ExecArgs = args
Expand Down
1 change: 0 additions & 1 deletion x/gopproj/gopproj.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func (p *handleEvent) OnInfo(format string, args ...interface{}) {

func (p *handleEvent) OnErr(stage string, err error) {
p.lastErr = fmt.Errorf("%s: %w", stage, err)
fmt.Fprintln(os.Stderr, p.lastErr)
}

func (p *handleEvent) OnEnd() {
Expand Down

0 comments on commit d5e4a05

Please sign in to comment.