unless the status really is successful. Otherwise, log
"exiting unsuccessfully". Thanks to David Watzke. (trunk r7900)
svn path=/main/branches/2.1.2/; revision=7927
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.