This seems like an easy question, as answered here. But, there is more to it.

I want to know if I can capture the error message of a failed action, say from within an onErrorActionList. Then, I could log it, as it isn't a critical failure and we don't want to display it to the user. Is there a built-in variable that stores the error message? I couldn't find this in the documentation.

Ideally, it would look something like the following and log a message like "unknown element nonexistent_component", in this case. So, as you can see in order to log an appropriate message on this componentSelection action, we would require the InstallBuilder error message. Otherwise, there is no way for me to determine, which component that this action failed on and why.

<componentSelection>
    <select>foo bar baz nonexistent_component</select>
    <abortOnError>0</abortOnError>
    <onErrorActionList>
        <logMessage>
            <text>There was an error: ${error}</text>
        </logMessage>
    </onErrorActionList>
</componentSelection>

asked 08 Jun '12, 04:51

DevHopeful_2012's gravatar image

DevHopeful_2012
176131521
accept rate: 9%


It is not currently possible but we are working to implement it. Could you follow up on this at support@bitrock.com so we can send you a new build once it is implemented?

link

answered 14 Jun '12, 07:16

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×44
×26

Asked: 08 Jun '12, 04:51

Seen: 1,238 times

Last updated: 14 Jun '12, 07:16