chore(tasks): add more details to error message
Trying to debug https://vikunja.sentry.io/share/issue/ef81451b0c7b43f1bff2d3a86ba393bb/
This commit is contained in:
parent
3855e179a9
commit
d22bc79d3c
|
|
@ -301,7 +301,8 @@ func (d *dbTaskSearcher) Search(opts *taskSearchOptions) (tasks []*Task, totalCo
|
|||
OrderBy(orderby).
|
||||
Find(&tasks)
|
||||
if err != nil {
|
||||
return nil, totalCount, fmt.Errorf("could not fetch tasks: %w", err)
|
||||
sql, vals := query.LastSQL()
|
||||
return nil, 0, fmt.Errorf("could not fetch task count, error was '%w', sql: '%v', vaues: %v", err, sql, vals)
|
||||
}
|
||||
|
||||
// fetch subtasks when expanding
|
||||
|
|
|
|||
Loading…
Reference in New Issue