message: Fix bug where invalid service classes never return error message
diff: @@ -5,7 +5,6 @@ import * as _ from 'lodash-es';
  import { Helmet } from 'react-helmet';
  import { IChangeEvent, ISubmitEvent } from 'react-jsonschema-form';
  -import { LoadingBox } from '../utils/status-box';
  import { ServiceInstanceModel, ClusterServiceClassModel, ClusterServicePlanModel } from '../../models';
  import { ClusterServiceClassInfo } from '../cluster-service-class-info';
  import { ButtonBar } from '../utils/button-bar';
  @@ -27,6 +26,7 @@ import {
  NsDropdown,
  PageHeading,
  resourcePathFromModel,
  + StatusBox,
  } from '../utils';
  const PARAMETERS_SECRET_KEY = 'parameters';
  @@ -118,10 +118,7 @@ class CreateInstance extends React.Component<CreateInstanceProps, CreateInstance
  }
  render() {
  - const { obj, plans } = this.props;
  - if (!obj.loaded) {
  - return <LoadingBox />;
  - }
  + const { obj, plans, loaded, loadError } = this.props;
  const serviceClass = _.get(obj, 'data');
  const title = 'Create Service Instance';
  @@ -147,6 +144,7 @@ class CreateInstance extends React.Component<CreateInstanceProps, CreateInstance
  <Helmet>
  <title>{title}</title>
  </Helmet>
  + <StatusBox data={serviceClass} loaded={loaded} loadError={loadError} label="Service Class">
  <PageHeading title={title} />
  <div className="co-m-pane__body co-create-service-instance">
  <div className="row">
  @@ -184,6 +182,7 @@ class CreateInstance extends React.Component<CreateInstanceProps, CreateInstance
  </div>
  </div>
  </div>
  + </StatusBox>
  </React.Fragment>;
  }
  }
  @@ -204,6 +203,8 @@ export const CreateInstancePage = (props) => {
  export type CreateInstanceProps = {
  obj: any,
  plans: any,
  + loaded: any,
  + loadError: boolean,
  match: any,
  preselectedNamespace: string,
  };
  