summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/emerge/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index e396e8ad0..7c00cdf74 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -4491,8 +4491,11 @@ def post_emerge(trees, mtimedb, retval):
os.chdir("/")
- emergelog("notitles" not in settings.features,
- " *** exiting successfully.")
+ if retval == os.EX_OK:
+ exit_msg = " *** exiting successfully."
+ else:
+ exit_msg = " *** exiting unsuccessfully with status '%s'." % retval
+ emergelog("notitles" not in settings.features, exit_msg)
# Dump the mod_echo output now so that our other notifications are shown
# last.