Return 1 on error, 0 on success

This commit is contained in:
Rob Crittenden
2008-02-05 13:55:06 -05:00
parent 5a96618f5d
commit 07b1aef252

View File

@@ -511,6 +511,7 @@ def main():
try:
main()
return 0
except Exception, e:
message = "Unexpected error - see ipaserver-install.log for details:\n %s" % str(e)
print message
@@ -518,3 +519,4 @@ except Exception, e:
for str in traceback.format_tb(sys.exc_info()[2]):
message = message + "\n" + str
logging.debug(message)
return 1