1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-06-22 04:38:17 +08:00

Use gitea forked macaron ()

Signed-off-by: Tamal Saha <tamal@appscode.com>
This commit is contained in:
Tamal Saha
2019-08-23 09:40:30 -07:00
committed by techknowlogick
parent ca6fb004ac
commit 171b359877
410 changed files with 14910 additions and 13245 deletions
.golangci.yml
cmd
contrib/pr
go.modgo.sum
integrations
models
modules
routers
vendor
gitea.com/macaron
github.com
google.golang.org/appengine/internal
gopkg.in
modules.txt

@ -10,7 +10,6 @@ package sqlite3
import (
"database/sql/driver"
"errors"
"context"
)
@ -18,7 +17,8 @@ import (
// Ping implement Pinger.
func (c *SQLiteConn) Ping(ctx context.Context) error {
if c.db == nil {
return errors.New("Connection was closed")
// must be ErrBadConn for sql to close the database
return driver.ErrBadConn
}
return nil
}