Skip to content

Commit

Permalink
Add info to an error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Feb 28, 2015
1 parent 8c90d4a commit e8752a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func EnsureAdminUser(p EnsureAdminUserParams) (added bool, err error) {
mongoServiceName := ServiceName(p.Namespace)
mongoService, err := discoverService(mongoServiceName)
if err != nil {
return false, errors.Trace(err)
return false, errors.Annotatef(err, "failed to discover service", mongoServiceName)
}
if err := mongoService.Stop(); err != nil {
return false, fmt.Errorf("failed to stop %v: %v", mongoServiceName, err)
Expand Down

0 comments on commit e8752a6

Please sign in to comment.