mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 23:33:29 +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() {
|
||||
driverName, err = createPostgresProxyDriver(cnnstr, proxyOpts)
|
||||
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