canonical / dqlite

Embeddable, replicated and fault-tolerant SQL engine.
https://dqlite.io
Other
3.8k stars 215 forks source link

client/protocol: Return owned error message from clientRecvFailure #510

Closed cole-miller closed 1 year ago

cole-miller commented 1 year ago

This matches how other functions in client/protocol.c work and is less error-prone.

Signed-off-by: Cole Miller cole.miller@canonical.com

codecov[bot] commented 1 year ago

Codecov Report

Merging #510 (176e168) into master (654fe09) will decrease coverage by 0.03%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #510      +/-   ##
==========================================
- Coverage   61.03%   61.00%   -0.03%     
==========================================
  Files          34       34              
  Lines        6349     6350       +1     
  Branches     1886     1888       +2     
==========================================
- Hits         3875     3874       -1     
  Misses       1293     1293              
- Partials     1181     1183       +2     
Impacted Files Coverage Δ
src/client/protocol.c 42.50% <0.00%> (-0.17%) :arrow_down:

... and 1 file with indirect coverage changes