summaryrefslogtreecommitdiff
path: root/web/src/pages/Build.jsx
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2021-02-02 16:02:22 -0800
committerJames E. Blair <corvus@inaugust.com>2021-02-03 00:05:35 +0000
commit677b17d9fddc837f6238fc3c0ce6b89cee3ed5d4 (patch)
tree11241d95f587c1ddef0f216e835bbd03001f2c6d /web/src/pages/Build.jsx
parentc94622ec45fe14f01aa4162b2653e8381fc051a3 (diff)
downloadzuul-677b17d9fddc837f6238fc3c0ce6b89cee3ed5d4.tar.gz
Add error_detail to the Task Summary
If the job encounters an execution error, the error_detail field should be returned by the API. Display that in the task summary section if there is no other output and it is available. Alternative to: I49f3b1578637a6d081de579dbe2272d8ddda886a Change-Id: I83c78ed3a6b63b3215be23a7a596cdcf15a80399
Diffstat (limited to 'web/src/pages/Build.jsx')
-rw-r--r--web/src/pages/Build.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/src/pages/Build.jsx b/web/src/pages/Build.jsx
index a7f48db5d..1c089b21c 100644
--- a/web/src/pages/Build.jsx
+++ b/web/src/pages/Build.jsx
@@ -35,6 +35,7 @@ import {
FileCodeIcon,
TerminalIcon,
PollIcon,
+ ExclamationIcon,
} from '@patternfly/react-icons'
import { fetchBuildAllInfo } from '../actions/build'
@@ -161,6 +162,13 @@ class BuildPage extends React.Component {
<Fetching />
) : build.hosts ? (
<BuildOutput output={build.hosts} />
+ ) : build.error_detail ? (
+ <>
+ <EmptyState variant={EmptyStateVariant.small}>
+ <EmptyStateIcon icon={ExclamationIcon} />
+ </EmptyState>
+ <p><b>Error:</b> {build.error_detail}</p>
+ </>
) : (
<EmptyState variant={EmptyStateVariant.small}>
<EmptyStateIcon icon={PollIcon} />