Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] How to report actual submission error?

Solved it. I used a value group '(.*)' to hold the end of the error message. Then I set the jobId's value attribute to the value group. Finally displayed the jobId's value in the throw message. 

                <target ref="@jobId">
                    <match>
                        <_expression_ flags="DOTALL|UNIX_LINES">.*Submission error: (.*)</_expression_>
                        <set field="value">
                            <entry valueGroup="1"/></set>
                        <throw message="Job Submit Failed: ${ptp_rm:@jobId#value}"/>
                    </match>
                </target>

I'm always open to suggestions of a better way. And this only works for one error at a time, but it's better than nothing.




Back to the top