Commit d365ee80 authored by Kirill Smelkov's avatar Kirill Smelkov

xerr: Cosmetics

Name for error vector: ev -> errv
parent 486ede30
...@@ -20,13 +20,13 @@ import ( ...@@ -20,13 +20,13 @@ import (
// error merging multiple errors (e.g. after collecting them from several parallel workers) // error merging multiple errors (e.g. after collecting them from several parallel workers)
type Errorv []error type Errorv []error
func (ev Errorv) Error() string { func (errv Errorv) Error() string {
if len(ev) == 1 { if len(errv) == 1 {
return ev[0].Error() return errv[0].Error()
} }
msg := fmt.Sprintf("%d errors:\n", len(ev)) msg := fmt.Sprintf("%d errors:\n", len(errv))
for _, e := range ev { for _, e := range errv {
msg += fmt.Sprintf("\t- %s\n", e) msg += fmt.Sprintf("\t- %s\n", e)
} }
return msg return msg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment