handleError(error) {
    if (this.environment === 'production') {
      if (error && error instanceof Error) {
        error = `Error message: ${error.message}\nStack trace: ${error.stack}`;
      }
      this.warn(
        `Ember Inspector has errored.\n` +
          `This is likely a bug in the inspector itself.\n` +
          `You can report bugs at https://github.com/emberjs/ember-inspector.\n${error}`,
      );
    } else {
      this.warn('EmberDebug has errored:');
      throw error;
    }
  }
Handle an error caused by EmberDebug.

This function rethrows in development and test envs,
but warns instead in production.

The idea is to control errors triggered by the inspector
and make sure that users don't get mislead by inspector-caused
bugs.

@method handleError
@param {Error} error