Fix Errorf calls
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2020-05-16 21:25:07 +02:00
parent 09fc791c4f
commit 3301732248

View File

@ -150,7 +150,7 @@ func (fp *FilePages) PageHistory(p string) ([]Revision, error) {
err = cmd.Start() err = cmd.Start()
if err != nil { if err != nil {
return nil, fmt.Errorf("while starting", err) return nil, fmt.Errorf("while starting: %s", err)
} }
buf := bufio.NewScanner(output) buf := bufio.NewScanner(output)
@ -180,7 +180,7 @@ func (fp *FilePages) PageHistory(p string) ([]Revision, error) {
} }
if err := cmd.Wait(); err != nil { if err := cmd.Wait(); err != nil {
return nil, fmt.Errorf("while waiting", err) return nil, fmt.Errorf("while waiting: %s", err)
} }
return revisions, nil return revisions, nil