We are running into a Redshift error that the final image would randomly not be produced properly. The final few lines of the log looks like this.
[Redshift] Failed to save file '\\PATH\TO\OUTPUT.FRAME.exr'
[Redshift] Frame done - total time for layer 'LAYER', frame xxx (1/1): 44m:46s
[Redshift] Rendering layer 'LAYER' done - total time for 1 frames: 44m:46s
STDOUT: Render completed.
The output file gets created, but with size 0 kb.
My question is, how can I force the task to fail if this phrase Failed to save file showed up? . I tried adding it in the plugin file MayaBatch.py under HandleErrorMessage function, but I think it never gets triggered because the message was not considered an error message?
One thing to note too which throws folks off (including me): We stop trying to match after we find a line, so if there is a rule that will grab a part of the message (say it starts with “Error”) then your custom rule may never be called.