We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b89e6aa commit 8e51ddaCopy full SHA for 8e51dda
backend/cli/serve.go
@@ -10,7 +10,6 @@ import (
10
"github.com/labstack/echo/v4"
11
"github.com/labstack/echo/v4/middleware"
12
"gorm.io/gorm"
13
- "log"
14
"net/http"
15
)
16
@@ -37,12 +36,12 @@ func commandServe(appConfig config.AppConfig) error {
37
36
// Connect to storage backend
38
storage_backend := storage.DiskController{}.New(appConfig.DataPath)
39
if err := storage_backend.Setup(); err != nil {
40
- log.Fatalln(err)
+ return err
41
}
42
defer storage_backend.TearDown()
43
// Connect to database
44
if err := db.InitDB(appConfig.DB); err != nil {
45
46
47
// Create server
48
e := echo.New()
0 commit comments