@naturalcycles/nodejs-lib 12.101.1 → 12.101.2
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.
|
@@ -96,10 +96,13 @@ class SlackService {
|
|
|
96
96
|
json,
|
|
97
97
|
})
|
|
98
98
|
.catch(err => {
|
|
99
|
-
// console.log(err)
|
|
100
99
|
// ignore (unless throwOnError is set)
|
|
101
|
-
if (msg.throwOnError)
|
|
100
|
+
if (msg.throwOnError) {
|
|
102
101
|
throw err;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
console.log(err);
|
|
105
|
+
}
|
|
103
106
|
});
|
|
104
107
|
}
|
|
105
108
|
kvToFields(kv) {
|
package/package.json
CHANGED
|
@@ -132,9 +132,12 @@ export class SlackService<CTX = any> {
|
|
|
132
132
|
json,
|
|
133
133
|
})
|
|
134
134
|
.catch(err => {
|
|
135
|
-
// console.log(err)
|
|
136
135
|
// ignore (unless throwOnError is set)
|
|
137
|
-
if (msg.throwOnError)
|
|
136
|
+
if (msg.throwOnError) {
|
|
137
|
+
throw err
|
|
138
|
+
} else {
|
|
139
|
+
console.log(err)
|
|
140
|
+
}
|
|
138
141
|
})
|
|
139
142
|
}
|
|
140
143
|
|