Module: check_mk
Branch: master
Commit: bb9f5981401b0235668a6865c31ee93be82e7f53
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bb9f5981401b02…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 19 08:29:07 2018 +0100
5737 FIX cmk -M now handles missing man pages in a more user friendly way
Change-Id: I66a5b4a4ad9a2cab1e5d8459c4135588cd3b0759
---
.werks/5737 | 10 ++++++++++
cmk/man_pages.py | 3 +--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/.werks/5737 b/.werks/5737
new file mode 100644
index 0000000..0a23d44
--- /dev/null
+++ b/.werks/5737
@@ -0,0 +1,10 @@
+Title: cmk -M now handles missing man pages in a more user friendly way
+Level: 1
+Component: core
+Compatible: compat
+Edition: cre
+Version: 1.5.0i3
+Date: 1519025318
+Class: fix
+
+
diff --git a/cmk/man_pages.py b/cmk/man_pages.py
index 99779dc..45c50e4 100644
--- a/cmk/man_pages.py
+++ b/cmk/man_pages.py
@@ -555,8 +555,7 @@ class ManPageRenderer(object):
def _load(self):
self.man_page = load_man_page(self.name)
if not self.man_page:
- sys.stdout.write("ERROR: No manpage for %s. Sorry.\n" % self.name)
- return
+ raise MKGeneralException("No manpage for %s. Sorry.\n" %
self.name)
def paint(self):