Skip to content

Commit

Permalink
Merge pull request #1162 from rselbach/rselbach/no-sensitive-info
Browse files Browse the repository at this point in the history
Don't output sensitive information on error
  • Loading branch information
dhui authored Sep 23, 2024
2 parents 555501f + e22d012 commit c378583
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 c378583

Please sign in to comment.