dkg.js 8.2.2 → 8.2.4

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.
@@ -57,6 +57,22 @@ export default class HttpService {
57
57
 
58
58
  return response.data.operationId;
59
59
  } catch (error) {
60
+ const status = error?.response?.status;
61
+ const body = error?.response?.data;
62
+ const url = `${this.getBaseUrl(endpoint, port)}/publish`;
63
+ console.error(
64
+ 'Unable to publish',
65
+ JSON.stringify(
66
+ {
67
+ url,
68
+ status,
69
+ body,
70
+ message: error?.message,
71
+ },
72
+ null,
73
+ 2,
74
+ ),
75
+ );
60
76
  throw Error(`Unable to publish: ${error.message}`);
61
77
  }
62
78
  }