Fixed: Improved failed series search messaging

Closes #3187
This commit is contained in:
Mark McDowall 2019-08-04 09:01:12 -07:00
parent 0ce81e1ab6
commit bd9bded73b
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import getErrorMessage from 'Utilities/Object/getErrorMessage';
import { icons, kinds } from 'Helpers/Props';
import Button from 'Components/Link/Button';
import Link from 'Components/Link/Link';
@ -122,8 +123,13 @@ class AddNewSeries extends Component {
}
{
!isFetching && !!error &&
<div>Failed to load search results, please try again.</div>
!isFetching && !!error ?
<div className={styles.message}>
<div className={styles.helpText}>
Failed to load search results, please try again.
</div>
<div>{getErrorMessage(error)}</div>
</div> : null
}
{