Skip to content

Commit

Permalink
More verbose error for csv
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihbaltaci committed Apr 21, 2023
1 parent 681dfc2 commit 2a89209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/scenario/data/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func ReadCsv(conf types.CsvConf) ([]map[string]interface{}, error) {
}

if !(resp.StatusCode >= 200 && resp.StatusCode <= 299) {
return nil, wrapAsCsvError(fmt.Sprintf("request to remote url failed: %d", resp.StatusCode), nil)
return nil, wrapAsCsvError(fmt.Sprintf("request to remote url (%s) failed. Status Code: %d", conf.Path, resp.StatusCode), nil)
}
reader = resp.Body
defer resp.Body.Close()
Expand Down

0 comments on commit 2a89209

Please sign in to comment.