Commit 2d9da30
committed
Beautify error messages
I had a problem in my SVD file, but I got quite non-specific error:
'Cannot render SVD device'. In order to debug I rewrote error messages
to understand the problem. Now it looks like this:
```
called `Result::unwrap()` on an `Err` value: Cannot render SVD device
Caused by:
0: can't render peripheral 'FortiMac', group 'No group name'
1: can't render register 'HASH'
2: can't convert 512 bits into a Rust integral type
```1 parent ee3f1cc commit 2d9da30
4 files changed
+19
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
217 | 208 | | |
218 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
219 | 213 | | |
220 | 214 | | |
221 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
| 674 | + | |
| 675 | + | |
681 | 676 | | |
682 | 677 | | |
683 | 678 | | |
684 | 679 | | |
685 | 680 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 681 | + | |
| 682 | + | |
690 | 683 | | |
691 | 684 | | |
692 | 685 | | |
| |||
1359 | 1352 | | |
1360 | 1353 | | |
1361 | 1354 | | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
| 1355 | + | |
| 1356 | + | |
1369 | 1357 | | |
1370 | 1358 | | |
1371 | 1359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
| 591 | + | |
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| |||
0 commit comments