Commit 3928d47
committed
Unify error handling of bad dictionary elements
As is, we have separate error handling and reporting for empty strings
and strings containing NUL bytes. For simpler error handling we merge
both cases; while that is slightly worse regarding the error reporting,
it shouldn't matter in practice, since users need to check the validity
of the dictionary upfront anyway.1 parent 150599e commit 3928d47
2 files changed
+8
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
812 | | - | |
813 | | - | |
| 811 | + | |
| 812 | + | |
814 | 813 | | |
815 | | - | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
816 | 817 | | |
817 | 818 | | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
| 819 | + | |
829 | 820 | | |
830 | 821 | | |
831 | 822 | | |
| |||
0 commit comments