def fatal(msgSubject, msg, toRaise = ValueError, flush = True) :
	
	global MESSAGE_LOG_FILE
	
	m = "  " + msg.replace("\n", '\n  ')
	
	subject = msgSubject

	s = """\n%s:\n%s\n%s\n\n  Sorry,\n\n  Mariana\n""" %(subject, "-"*(len(subject) + 1), m)
	
	if MSET.SAVE_MESSAGE_LOG :
		if not MESSAGE_LOG_FILE :
			MESSAGE_LOG_FILE = open(MSET.SAVE_MESSAGE_LOG_FILE, "w")
		MESSAGE_LOG_FILE.write("\ntimestamp:%s, human time:%s\n%s" % (time.time(), time.ctime(), s))
		if flush :
			MESSAGE_LOG_FILE.flush()

	raise toRaise(s)
Death is upon us
dataset/ETHPy150Open tariqdaouda/Mariana/Mariana/candies.py/fatal