From 1a9c5947edbaafcba78474f686024c9b12858dd3 Mon Sep 17 00:00:00 2001
From: Adam Nielsen <a.nielsen@shikadi.net>
Date: Sun, 30 Mar 2014 11:46:13 +1000
Subject: [PATCH] More descriptive error message if init system is unknown

---
 library/system/service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/system/service b/library/system/service
index c256b70c43..9820c28a06 100644
--- a/library/system/service
+++ b/library/system/service
@@ -565,7 +565,7 @@ class LinuxService(Service):
     def service_enable(self):
 
         if self.enable_cmd is None:
-            self.module.fail_json(msg='service name not recognized')
+            self.module.fail_json(msg='unknown init system, cannot enable service')
 
         # FIXME: we use chkconfig or systemctl
         # to decide whether to run the command here but need something