Skip to content

Commit

Permalink
chore: fix sqlite init error displaying (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno authored Nov 26, 2024
1 parent d2cff15 commit 6dea047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/database/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (d *SqliteDatabase) Init() {

var version string
if versionErr := db.QueryRow("SELECT SQLITE_VERSION()").Scan(&version); versionErr != nil {
d.logger.Panic().Err(err).Msg("Could not query SQLite database")
d.logger.Panic().Err(versionErr).Msg("Could not query SQLite database")
}

d.logger.Info().
Expand Down

0 comments on commit 6dea047

Please sign in to comment.