tiny: Fix duplicated error message in CPU fingerprint

This commit is contained in:
Kenjiro Nakayama 2016-08-07 12:49:40 +09:00
parent ec63c7a3fa
commit 71371fc592
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ func NewCPUFingerprint(logger *log.Logger) Fingerprint {
func (f *CPUFingerprint) Fingerprint(cfg *config.Config, node *structs.Node) (bool, error) {
if err := stats.Init(); err != nil {
f.logger.Printf("[FATAL] fingerprint.cpu: unable to obtain CPU information: %v", err)
return false, err
return false, fmt.Errorf("Unable to obtain CPU information: %v", err)
}
modelName := stats.CPUModelName()