issues
search
chaosblade-io
/
chaosblade
An easy to use and powerful chaos engineering experiment toolkit.(阿里巴巴开源的一款简单易用、功能强大的混沌实验注入工具)
https://chaosblade.io
Apache License 2.0
5.95k
stars
946
forks
source link
refectroign: Error return function modification
#1029
Closed
yj-yoo
closed
3 months ago
yj-yoo
commented
5 months ago
Describe what this PR does / why we need it
Replaced errors.New(fmt.Sprintf()) with fmt.Errorf(). According to the following blog, fmt.Errorf() is recommended for errors that require formatting, and errors.New() is recommended if the error text cannot be changed. ref:
https://www.digitalocean.com/community/tutorials/how-to-add-extra-information-to-errors-in-go
Does this pull request fix one issue?
Describe how you did it
Describe how to verify it
Special notes for reviews
Describe what this PR does / why we need it
Does this pull request fix one issue?
Describe how you did it
Describe how to verify it
Special notes for reviews