aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/subsystem
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/subsystem')
-rw-r--r--pkg/subsystem/service.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/subsystem/service.go b/pkg/subsystem/service.go
index e3dabcfce..b27200c30 100644
--- a/pkg/subsystem/service.go
+++ b/pkg/subsystem/service.go
@@ -13,6 +13,9 @@ type Service struct {
}
func MustMakeService(list []*Subsystem) *Service {
+ if len(list) == 0 {
+ panic("the subsystem list is empty")
+ }
service, err := MakeService(list)
if err != nil {
panic(fmt.Sprintf("service creation failed: %s", err))