Log Errors Missing in Internal
Adds a few missing errors and fix formatting for others. Fixes #3013
This commit is contained in:
parent
edc6e93c19
commit
10de8cac56
5 changed files with 8 additions and 5 deletions
|
|
@ -19,6 +19,7 @@ package file
|
|||
import (
|
||||
"crypto/sha1"
|
||||
"encoding/hex"
|
||||
"github.com/golang/glog"
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
|
|
@ -27,6 +28,7 @@ func SHA1(filename string) string {
|
|||
hasher := sha1.New()
|
||||
s, err := ioutil.ReadFile(filename)
|
||||
if err != nil {
|
||||
glog.Errorf("Error reading file %v", err)
|
||||
return ""
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue