@imposium-hub/components 1.36.0 → 1.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -476,8 +476,13 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
476
476
 
477
477
  }).catch((e) => {
478
478
  this.resetState();
479
+ const {data, status} = e.response;
479
480
  if (onError) {
480
- onError(copy.createExpError);
481
+ if (data && data.error) {
482
+ onError(`${copy.createExpError}: ${data.error}`);
483
+ } else {
484
+ onError(`${copy.createExpError}: ${e}`);
485
+ }
481
486
  }
482
487
  });
483
488
  });