nice shortcut on resource
This commit is contained in:
@@ -89,7 +89,7 @@ func (m *MongoDB) createClient(MongoURL string) error {
|
||||
|
||||
if err = mngoClient.Ping(MngoCtx, nil); err != nil {
|
||||
mngoClient = nil
|
||||
return errors.New("Mongodb connect " + MongoURL + ":" + "err")
|
||||
return errors.New("Mongodb ping " + MongoURL + ":" + "err")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user