Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed Nov 1, 2022
1 parent 9dd1e42 commit 7672928
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/client/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ func (c *Cassowary) Coordinate() (ResultMetrics, error) {
var w *csv.Writer

if c.RawOutput {
csvFile, _ := os.Create("raw.csv")
csvFile, err := os.Create("raw.csv")
if err != nil {
return ResultMetrics{}, err
}
w = csv.NewWriter(csvFile)
headerInfo := structNames(&durationMetrics{})
w.Write(headerInfo)
Expand Down

0 comments on commit 7672928

Please sign in to comment.