mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 02:23:28 +08:00
postgres: better error handling (#80375)
This commit is contained in:
@ -105,7 +105,8 @@ func (s *Service) newInstanceSettings(cfg *setting.Cfg) datasource.InstanceFacto
|
|||||||
if sdkproxy.New(proxyOpts).SecureSocksProxyEnabled() {
|
if sdkproxy.New(proxyOpts).SecureSocksProxyEnabled() {
|
||||||
driverName, err = createPostgresProxyDriver(cnnstr, proxyOpts)
|
driverName, err = createPostgresProxyDriver(cnnstr, proxyOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", nil
|
logger.Error("postgres proxy creation failed", "error", err)
|
||||||
|
return nil, fmt.Errorf("postgres proxy creation failed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user