The knowledge base is no longer actively updated, we have moved all content to our Community Support Forum

Can I customize the error message shown when showMessageOnError is enabled?

Author: BitRock Support       Date: February 12, 2008 08:09       Tags: Actions
Customization
Error Handling

Yes, you can add the <customErrorMessage> tag inside the action to customize the error message. Please see the example below.


        <runProgram>
            <program>${installdir}/run/excutable</program>
            <progressText>Text to be shown in the progress bar</progressText>
            <programArguments>arg1 arg2</programArguments>
            <abortOnError>0</abortOnError>
            <showMessageOnError>1</showMessageOnError>
            <customErrorMessage>Message that will susbtitute the system error message</customErrorMessage>
        </runProgram>