dlang-community / D-YAML

YAML parser and emitter for the D programming language
https://dlang-community.github.io/D-YAML/
Boost Software License 1.0
118 stars 38 forks source link

Improve and correct error message on duplicated keys #306

Closed Geod24 closed 2 years ago

Geod24 commented 2 years ago

The previous error message was using the wrong startMark, and didn't give the key information.

codecov[bot] commented 2 years ago

Codecov Report

Merging #306 (9c24e98) into master (0eb040e) will increase coverage by 0.02%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #306      +/-   ##
==========================================
+ Coverage   95.17%   95.20%   +0.02%     
==========================================
  Files          29       29              
  Lines        4559     4564       +5     
==========================================
+ Hits         4339     4345       +6     
+ Misses        220      219       -1     
Impacted Files Coverage Δ
source/dyaml/composer.d 96.69% <100.00%> (+0.14%) :arrow_up:
source/dyaml/node.d 91.85% <0.00%> (+0.10%) :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 0eb040e...9c24e98. Read the comment docs.