Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update vet.go
Co-authored-by: Andrew Benton <[email protected]>
  • Loading branch information
kyleconroy and andrewmbenton authored Oct 21, 2023
commit 5e9be803c8562cb99cdd5837ec970d5cc4c3d9ac
2 changes: 1 addition & 1 deletion internal/cmd/vet.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func (c *checker) checkSQL(ctx context.Context, s config.SQL) error {
var expl explainer
if s.Database != nil { // TODO only set up a database connection if a rule evaluation requires it
if s.Database.URI != "" && c.OnlyManagedDB {
return fmt.Errorf("database: connections disabled via command line flag")
return fmt.Errorf("database: connections disabled via SQLCDEBUG=databases=managed")
}
dburl, cleanup, err := c.fetchDatabaseUri(ctx, s)
if err != nil {
Expand Down