@smartico/public-api 0.0.270 → 0.0.271
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.
- package/dist/CustomSections/AchCustomSection.d.ts +1 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -2
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/CustomSections/AchCustomSection.ts +1 -2
- package/src/SmarticoAPI.ts +5 -0
package/package.json
CHANGED
package/src/SmarticoAPI.ts
CHANGED
|
@@ -263,6 +263,11 @@ class SmarticoAPI {
|
|
|
263
263
|
try {
|
|
264
264
|
const timeStart = new Date().getTime();
|
|
265
265
|
result = await this.messageSender(message, this.publicUrl, expectCID);
|
|
266
|
+
|
|
267
|
+
if (result.errCode && result.errSetup) {
|
|
268
|
+
throw new Error(result.errMessage);
|
|
269
|
+
}
|
|
270
|
+
|
|
266
271
|
result = SmarticoAPI.replaceSmrDomainsWithCloudfront(result);
|
|
267
272
|
const timeEnd = new Date().getTime();
|
|
268
273
|
|