Commit c39bfba
committed
Fail Unified QR URI parsing if any known param fails
Previously, we decided to continue parsing any fields if we failed to
parse a known (i.e., `lightning` or `lno`) parameter failed to parse.
This however just hides the error and is a bit anti-idiomatic even
though allowing to use *some* URI fields even in the face of
incompatible formats for others.
Here we therefore opt to fail parsing the URI if any field fails.1 parent 8f48dc6 commit c39bfba
2 files changed
+15
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
275 | 272 | | |
276 | 273 | | |
277 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
871 | | - | |
872 | | - | |
873 | | - | |
| 871 | + | |
| 872 | + | |
874 | 873 | | |
875 | | - | |
| 874 | + | |
876 | 875 | | |
877 | 876 | | |
878 | 877 | | |
| |||
893 | 892 | | |
894 | 893 | | |
895 | 894 | | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
901 | 898 | | |
902 | 899 | | |
903 | 900 | | |
| |||
0 commit comments