Minor changes and fixes

This commit is contained in:
David J. Allen 2024-05-07 16:51:07 -06:00
parent 6bf9035d96
commit b873613939
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
4 changed files with 17 additions and 6 deletions

View file

@ -18,6 +18,7 @@ func CreateProbeResultsIfNotExists(path string) (*sqlx.DB, error) {
PRIMARY KEY (host, port)
);
`
// TODO: it may help with debugging to check for file permissions here first
db, err := sqlx.Open("sqlite3", path)
if err != nil {
return nil, fmt.Errorf("could not open database: %v", err)