surface correct execution error (#656)

This commit is contained in:
Dan Wilson 2023-10-05 16:29:28 +00:00 committed by Harness
parent f1f942212a
commit 4722d60be2
2 changed files with 2 additions and 3 deletions

View File

@ -127,7 +127,7 @@ const Execution = () => {
/>
<PageBody
className={cx(css.pageBody, { [css.withError]: !!error })}
error={error ? getErrorMessage(error || executionError) : null}
error={error || executionError ? getErrorMessage(error || executionError) : null}
retryOnError={voidFn(refetch)}
noData={{
when: () => !execution && !loading && !executionLoading,

View File

@ -16,12 +16,11 @@
import React from 'react'
import { Layout, Text } from '@harnessio/uicore'
import { Icon } from '@harnessio/icons'
import { BookmarkBook } from 'iconoir-react'
import { FontVariation } from '@harnessio/design-system'
import { RepoPublicLabel } from 'components/RepoPublicLabel/RepoPublicLabel'
import { CodeIcon, GitInfoProps } from 'utils/GitUtils'
import type { GitInfoProps } from 'utils/GitUtils'
import { RepositoryPageHeader } from 'components/RepositoryPageHeader/RepositoryPageHeader'
import css from './RepositoryHeader.module.scss'