mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-17 16:59:02 +00:00
Some error handling work
This commit is contained in:
@@ -168,6 +168,9 @@ func (database Database) GetAllProjects(managerId int64) *[]Project {
|
||||
ORDER BY name`, managerId)
|
||||
}
|
||||
handleErr(err)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
for rows.Next() {
|
||||
p := Project{}
|
||||
|
||||
Reference in New Issue
Block a user