Skip to content

Commit

Permalink
Fix service to use NamedError
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Shah committed Feb 24, 2017
1 parent 653ac28 commit 68d4547
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions service/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,8 @@ func (s *manager) start() Control {
s.shutdownMu.Unlock()
if _, err := s.shutdown(e, "", nil); err != nil {
zap.L().Error("Unable to shut down modules",
// FIXME: Migrate to zap.NamedError.
zap.Any("initialError", e),
zap.Any("shutdownError", err),
zap.NamedError("initialError", e),
zap.NamedError("shutdownError", err),
)
}
zap.L().Error("Error starting the module", zap.Error(e))
Expand Down

0 comments on commit 68d4547

Please sign in to comment.