We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentee00c6f commit34641d1Copy full SHA for 34641d1
coderd/database/modelqueries.go
@@ -54,7 +54,7 @@ func (q *sqlQuerier) GetAuthorizedTemplates(ctx context.Context, arg GetTemplate
54
pq.Array(arg.IDs),
55
)
56
iferr!=nil {
57
-returnnil,err
+returnnil,xerrors.Errorf("query context: %w",err)
58
}
59
deferrows.Close()
60
varitems []Template
@@ -82,16 +82,17 @@ func (q *sqlQuerier) GetAuthorizedTemplates(ctx context.Context, arg GetTemplate
82
&i.AllowUserAutostop,
83
&i.FailureTTL,
84
&i.InactivityTTL,
85
+&i.LockedTTL,
86
);err!=nil {
87
+returnnil,xerrors.Errorf("scan: %w",err)
88
89
items=append(items,i)
90
91
iferr:=rows.Close();err!=nil {
92
+returnnil,xerrors.Errorf("close: %w",err)
93
94
iferr:=rows.Err();err!=nil {
95
+returnnil,xerrors.Errorf("rowserr: %w",err)
96
97
returnitems,nil
98