@hastehaul/common 2.0.34 → 2.0.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -109,8 +109,8 @@ class NatsConsumer {
109
109
  }
110
110
  }
111
111
  catch (error) {
112
- console.error(error);
113
- // throw new Error("Failed to consume messages");
112
+ console.error("Consumer Error: ", error);
113
+ throw new Error("Failed to consume messages");
114
114
  }
115
115
  });
116
116
  }
@@ -31,7 +31,7 @@ class NatsStream {
31
31
  return;
32
32
  }
33
33
  catch (error) {
34
- console.error(error.message);
34
+ console.error(error);
35
35
  throw new Error("Failed to add stream");
36
36
  }
37
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.0.34",
3
+ "version": "2.0.36",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",