Skip to content

Commit

Permalink
add failed snowflake connection name into the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
karakanb committed Dec 22, 2023
1 parent 56ac5d3 commit 5fccaf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/connection/connection.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package connection

import (
"errors"
"github.com/pkg/errors"

"github.com/bruin-data/bruin/pkg/bigquery"
"github.com/bruin-data/bruin/pkg/config"
Expand Down Expand Up @@ -102,14 +102,14 @@ func NewManagerFromConfig(cm *config.Config) (*Manager, error) {
conn := conn
err := connectionManager.AddBqConnectionFromConfig(&conn)
if err != nil {
return nil, err
return nil, errors.Wrapf(err, "failed to add BigQuery connection '%s'", conn.Name)
}
}
for _, conn := range cm.SelectedEnvironment.Connections.Snowflake {
conn := conn
err := connectionManager.AddSfConnectionFromConfig(&conn)
if err != nil {
return nil, err
return nil, errors.Wrapf(err, "failed to add Snowflake connection '%s'", conn.Name)
}
}

Expand Down

0 comments on commit 5fccaf8

Please sign in to comment.