Commit 3a2ffb1
feat: More helpful error messages in model import (#2264)
This PR adds more helpful error messages to model import to help debug
errors that may occur during the migration to `hugr-model` as the
default serialisation format (see #2260). The errors are still far from
ideal, but should already provide a significant improvement. We hide the
internals of `ImportError` in order to allow for the error messages to
improve without incurring breaking changes. This PR also implements a
remaining `todo!()` concerning importing tuple types.1 parent 157c44e commit 3a2ffb1
File tree
6 files changed
+875
-645
lines changed- hugr-core
- src
- tests
- hugr-llvm
6 files changed
+875
-645
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
0 commit comments