Postprocess Custom error message
 
Notifiche
Cancella tutti

Postprocess Custom error message  

  RSS
demonlibra
(@demonlibra)
New Member
Postprocess Custom error message

If a script execution error occurs, i.e. if the interpreter passes an exit code other than 0, the postprocessing results are not saved and a message is displayed with the error code and output from the interpreter. This can be used to display your messages, for example for python3:

import sys

error = True
if error:
	sys.exit("\n!!! Warning !!!\n\nSomething wrong.\nCheck here and there.")

Postato : 04/07/2022 5:53 am
Condividi: