Skip to content

Commit

Permalink
fix error format
Browse files Browse the repository at this point in the history
  • Loading branch information
jzwlqx committed Jul 22, 2024
1 parent 30bc5d5 commit 700b01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exporter/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (i *inspServer) createListener(cfg *InspServerConfig) (net.Listener, error)
}
parent := path.Dir(addr)
if err = os.MkdirAll(parent, 0o755); err != nil {
return nil, fmt.Errorf("failed create director %s: %w", parent)
return nil, fmt.Errorf("failed create director %s: %w", parent, err)
}
//f, err := os.OpenFile(addr, os.O_CREATE, 0o666)
//if err != nil {
Expand Down

0 comments on commit 700b01f

Please sign in to comment.