mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
wrap errors
This commit is contained in:
parent
a8516edb98
commit
9ea1a22b3f
|
@ -83,17 +83,17 @@ func BootstrapEnvironment(ctx context.Context, environ *bbgo.Environment, userCo
|
|||
}
|
||||
|
||||
if err := environ.ConfigureExchangeSessions(userConfig); err != nil {
|
||||
return err
|
||||
return errors.Wrap(err, "exchange session configure error")
|
||||
}
|
||||
|
||||
if userConfig.Persistence != nil {
|
||||
if err := environ.ConfigurePersistence(userConfig.Persistence); err != nil {
|
||||
return errors.Wrap(err, "persistence configuration error")
|
||||
return errors.Wrap(err, "persistence configure error")
|
||||
}
|
||||
}
|
||||
|
||||
if err := environ.ConfigureNotificationSystem(userConfig) ; err != nil {
|
||||
return errors.Wrap(err,"notification configuration error")
|
||||
return errors.Wrap(err,"notification configure error")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user