Fix SQLITE_BUSY retry logic

This commit is contained in:
2024-09-16 15:35:24 +02:00
parent ce641a3ffe
commit fbb9cf68ab
4 changed files with 15 additions and 8 deletions

View File

@@ -81,6 +81,10 @@ func (j errorHTTPResponse) Headers() []string {
return langext.ArrMap(j.headers, func(v headerval) string { return v.Key + "=" + v.Val })
}
func (j errorHTTPResponse) Unwrap() error {
return j.error
}
func InternalError(e error) ginext.HTTPResponse {
return createApiError(nil, "InternalError", 500, apierr.INTERNAL_EXCEPTION, 0, e.Error(), e)
}