@bprotsyk/aso-core 2.1.47 → 2.1.48
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.
|
@@ -217,8 +217,14 @@ async function cloneOWCampaign(app) {
|
|
|
217
217
|
return campaign;
|
|
218
218
|
}
|
|
219
219
|
catch (error) {
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
// Розширене логування помилки
|
|
221
|
+
console.error('Campaign creation failed. Details:', {
|
|
222
|
+
payload: campaignPayload,
|
|
223
|
+
errorStatus: error.response?.status,
|
|
224
|
+
errorData: error.response?.data,
|
|
225
|
+
errorMessage: error.message
|
|
226
|
+
});
|
|
227
|
+
throw error;
|
|
222
228
|
}
|
|
223
229
|
}
|
|
224
230
|
async function cloneDCampaign(app) {
|
package/package.json
CHANGED
|
@@ -265,8 +265,14 @@ async function cloneOWCampaign(app: IApp): Promise<IKeitaroCampaign> {
|
|
|
265
265
|
const campaign = await createCampaign(campaignPayload)
|
|
266
266
|
return campaign
|
|
267
267
|
} catch (error: any) {
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
// Розширене логування помилки
|
|
269
|
+
console.error('Campaign creation failed. Details:', {
|
|
270
|
+
payload: campaignPayload,
|
|
271
|
+
errorStatus: error.response?.status,
|
|
272
|
+
errorData: error.response?.data,
|
|
273
|
+
errorMessage: error.message
|
|
274
|
+
})
|
|
275
|
+
throw error
|
|
270
276
|
}
|
|
271
277
|
}
|
|
272
278
|
|