Add error-handling for WindowsVersion-stuff
This commit is contained in:
10
core/core.go
10
core/core.go
@@ -1,11 +1,19 @@
|
||||
package core
|
||||
|
||||
import "github.com/safing/portbase/modules"
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/safing/portbase/modules"
|
||||
)
|
||||
|
||||
var (
|
||||
coreModule = modules.Register("core", nil, startCore, nil, "base", "database", "config", "api", "random")
|
||||
)
|
||||
|
||||
func startCore() error {
|
||||
if err := startPlatformSpecific(); err != nil {
|
||||
return fmt.Errorf("failed to start plattform-specific stuff: %s", err)
|
||||
}
|
||||
|
||||
return registerDatabases()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user