kuzzleio / kuzzle-plugin-cluster

Kuzzle cluster mode
Apache License 2.0
7 stars 2 forks source link

fix error handling on subscription errors #96

Closed benoitvidis closed 5 years ago

benoitvidis commented 5 years ago

Fixes error handling in the case a (un)subscription would fail because of a malformed request.

In case the request was rejected because it did not have a valid body.roomId property, the cluster would fail and hide the original message, override by a PluginError.

codecov[bot] commented 5 years ago

Codecov Report

Merging #96 into 3-dev will increase coverage by 0.42%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##            3-dev      #96      +/-   ##
==========================================
+ Coverage   90.69%   91.12%   +0.42%     
==========================================
  Files           4        4              
  Lines         548      552       +4     
==========================================
+ Hits          497      503       +6     
+ Misses         51       49       -2
Impacted Files Coverage Δ
lib/index.js 84.72% <100%> (+0.91%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a2f0638...c73de63. Read the comment docs.