@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
- "version": "12.101.1",
3
+ "version": "12.101.2",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "docs-serve": "vuepress dev docs",
@@ -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) throw err
136
+ if (msg.throwOnError) {
137
+ throw err
138
+ } else {
139
+ console.log(err)
140
+ }
138
141
  })
139
142
  }
140
143