Skip to content

Commit 54f684d

Browse files
committed
add error check
Signed-off-by: David Schneiderbauer <[email protected]>
1 parent dd48773 commit 54f684d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

models/migrations/v39.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ func addTimetracking(x *xorm.Engine) error {
7070
}
7171
//Updating existing issue units
7272
units := make([]*RepoUnit, 0, 100)
73-
x.Where("`type` = ?", V16UnitTypeIssues).Find(units)
73+
err := x.Where("`type` = ?", V16UnitTypeIssues).Find(units)
74+
if err != nil {
75+
return fmt.Errorf("Query repo units: %v", err)
76+
}
7477
for _, unit := range units {
7578
if unit.Config != nil {
7679
continue

0 commit comments

Comments
 (0)