Skip to content

Commit

Permalink
enrich extradata with any snowflake query errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairk14 committed Aug 23, 2023
1 parent e3ba791 commit e1c4539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/detectors/snowflake/snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
var name, createdOn, isDefault, isCurrent, origin, owner, comment, option, retentionTime, kind string
err := rows.Scan(&createdOn, &name, &isDefault, &isCurrent, &origin, &owner, &comment, &option, &retentionTime, &kind)
if err != nil {
s1.VerificationError = fmt.Errorf("unable to finish querying Snowflake to enrich secret ExtraData %+v", err)
s1.ExtraData["Snowflake Querying Error on a Valid Credential"] = fmt.Sprintf("unable to finish querying Snowflake to enrich secret ExtraData %+v", err)
}
databases = append(databases, name)
}
Expand Down

0 comments on commit e1c4539

Please sign in to comment.