We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd9991a commit aed30f2Copy full SHA for aed30f2
src/oc-client.js
@@ -602,6 +602,10 @@ export function createOc(oc) {
602
)
603
.then(handleFetchResponse)
604
.then((apiResponse) => {
605
+ if (apiResponse.error) {
606
+ throw apiResponse;
607
+ }
608
+
609
let template = apiResponse.template;
610
apiResponse.data.id = ocId;
611
apiResponse.data.element = element;
@@ -631,6 +635,7 @@ export function createOc(oc) {
631
635
retries[href] = 0;
632
636
}
633
637
logError(MESSAGES_ERRORS_RETRIEVING);
638
+ window.oc.events.fire("oc:error", err);
634
639
retry(
640
href,
641
(requestNumber) => {
0 commit comments