mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-16 08:19:03 +00:00
Some error handling work
This commit is contained in:
@@ -81,6 +81,9 @@ func (database *Database) GetLogs(since int64, level LogLevel) *[]LogEntry {
|
||||
rows, err := db.Query("SELECT * FROM log_entry WHERE timestamp > $1 AND level=$2",
|
||||
since, level)
|
||||
handleErr(err)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
for rows.Next() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user