Skip to content

Commit

Permalink
Clean up error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Preetha Appan committed Dec 18, 2017
1 parent 0401c22 commit 039942f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,9 @@ func (s *StateStore) updateEvalModifyIndex(txn *memdb.Txn, index uint64, evalID
return fmt.Errorf("eval lookup failed: %v", err)
}
if existing == nil {
return fmt.Errorf("[ERR] state_store: unable to find eval id %q", evalID)
err := fmt.Errorf("unable to find eval id %q", evalID)
s.logger.Printf("[ERR] state_store: %v", err)
return err
}
eval := existing.(*structs.Evaluation).Copy()
// Update the indexes
Expand Down

0 comments on commit 039942f

Please sign in to comment.