Skip to content

Commit

Permalink
Don't output sensitive information on error
Browse files Browse the repository at this point in the history
  • Loading branch information
rselbach committed Sep 12, 2024
1 parent 555501f commit e22d012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func New(sourceURL, databaseURL string) (*Migrate, error) {

databaseDrv, err := database.Open(databaseURL)
if err != nil {
return nil, fmt.Errorf("failed to open database, %q: %w", databaseURL, err)
return nil, fmt.Errorf("failed to open database: %w", err)
}
m.databaseDrv = databaseDrv

Expand Down Expand Up @@ -157,7 +157,7 @@ func NewWithSourceInstance(sourceName string, sourceInstance source.Driver, data

databaseDrv, err := database.Open(databaseURL)
if err != nil {
return nil, fmt.Errorf("failed to open database, %q: %w", databaseURL, err)
return nil, fmt.Errorf("failed to open database: %w", err)
}
m.databaseDrv = databaseDrv

Expand Down

0 comments on commit e22d012

Please sign in to comment.