return error if it fails

This commit is contained in:
Robin Olsen
2026-02-24 15:09:58 +01:00
parent 5d774620dd
commit 87bb49cc64

View File

@@ -2,6 +2,8 @@ package main
import (
"context"
"fmt"
"os"
"github.com/LazyBachelor/LazyPM/internal/service"
"github.com/LazyBachelor/LazyPM/pkg/web"
@@ -9,6 +11,7 @@ import (
func main() {
if err := web.NewWeb().Run(context.Background(), service.BaseConfig); err != nil {
return
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
}