Skip to content

Commit

Permalink
feat(ui): add error.message and error.stackTrace to autocomplete
Browse files Browse the repository at this point in the history
Fixes #5641
  • Loading branch information
loicmathieu committed Oct 24, 2024
1 parent 31f1e78 commit bd60c06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ui/src/assets/documentations/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ The table below lists common Pebble expressions and functions.
| `{{ secret('MY_SECRET') }}` | Retrieves secret `MY_SECRET`. |
| `{{ namespace.myproject.myvariable }}` | Accesses namespace variable `myproject.myvariable`. |
| `{{ outputs.taskId.outputAttribute }}` | Accesses task output attribute. |
| `{{ error.taskId }}` | In case of failure, accesses the task identifier of the task that fail. |
| `{{ error.taskId }}` | In case of failure, accesses the task identifier of the last task that fail. |
| `{{ error.message }}` | In case of failure, accesses the last error message. |
| `{{ error.stackTrace }}` | In case of failure, accesses the last error stack trace. |
| `{{ range(0, 3) }}` | Generates a list from 0 to 3. |
| `{{ block("post") }}` | Renders the contents of the ["post" block](https://kestra.io/docs/concepts/expression/function#block). |
| `{{ currentEachOutput(outputs.first) }}` | Retrieves the current output of a sibling task. |
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/inputs/MonacoEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
autocompletions = ["id", "type"];
break;
case "error":
autocompletions = ["taskId"];
autocompletions = ["taskId", "message", "stackTrace"];
break;
default: {
let match = field.match(/^outputs\.([^.]+)$/);
Expand Down

0 comments on commit bd60c06

Please sign in to comment.