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