Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Added error data and abort data in get execution output #79

Merged
merged 1 commit into from
Jun 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/get/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ var executionColumns = []printer.Column{
{Header: "Phase", JSONPath: "$.closure.phase"},
{Header: "Started", JSONPath: "$.closure.startedAt"},
{Header: "Elapsed Time", JSONPath: "$.closure.duration"},
{Header: "Abort data", JSONPath: "$.closure.abortMetadata[\"cause\"]"},
{Header: "Error data", JSONPath: "$.closure.error[\"message\"]"},
}

func ExecutionToProtoMessages(l []*admin.Execution) []proto.Message {
Expand Down