Signed-off-by: Hadi <hadi@example.com>
This commit is contained in:
Hadi
2026-05-29 13:41:09 +02:00
parent 677223c9b0
commit 61a112a302
6 changed files with 19 additions and 6 deletions
+1 -3
View File
@@ -1,7 +1,6 @@
package app
import (
"fmt"
"log"
"os"
"path/filepath"
@@ -97,8 +96,7 @@ func New(broker *intercept.Broker, name, path string) Model {
d, err := db.Open(path)
if err != nil {
fmt.Fprintf(os.Stderr, "db: %v\n", err)
os.Exit(1)
log.Fatalf("db: %v", err)
}
m.database = d
broker.SetDB(d)