|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (4)
View Page HistoryIf an error occurs during the execution of a flow of commands:
- the command that has thrown the error is interrupted,
- the command that has thrown the error is interrupted,
- the return code of the command can be check using the commands *isParsingErrorReturned*, *isExecutionErrorReturned*, *isNoErrorReturned* and the ternary conditional operator:
- the return code of the command can be check using the commands *{{isParsingErrorReturned}}*, *isExecutionErrorReturned*, *isNoErrorReturned*, the ternary conditional operator, and the attribute *lastErrorCode*:
{code}
> ./petals-cli.sh -f - << EOF
deploy <artifact-url>
> ./petals-cli.sh -f - << EOF
deploy <artifact-url>
isNoErrorReturned ? listartefacts : exit 1 lastErrorCode
EOF
{code}
{code}
Note: Return value of command {{isParsingErrorReturned}}, {{isExecutionErrorReturned}} and {{isNoErrorReturned}} are re-intialized when invoking command. Only the error of the last command execution can be checked.
h2. Connection to a Petals node