Skip to content

Commit

Permalink
Merge pull request #5222 from Automattic/fix/initial-domain-suggestio…
Browse files Browse the repository at this point in the history
…ns-error-handling

Domains: better error handling for initial domains suggestion search
  • Loading branch information
gwwar committed May 9, 2016
2 parents d29beae + 4afe4c3 commit b8af351
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/components/domains/register-domain-step/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ const RegisterDomainStep = React.createClass( {
} ).catch( error => {
if ( error && error.statusCode === 503 ) {
return this.props.onDomainsAvailabilityChange( false );
} else if ( error ) {
throw error;
} else if ( error && error.error ) {
error.code = error.error;
this.showValidationErrorMessage( initialQuery, error );
}
this.setState( { defaultSuggestions: [] } );
} );
},

Expand Down

0 comments on commit b8af351

Please sign in to comment.