Commit d44f882
jfecher
fix: Change panic to error in interpreter (#5446)
# Description
## Problem\*
Working towards #5428
## Summary\*
Changes the panic in #5428 to an
error instead. The original error message was no longer appropriate
either since this was occurring in the interpreter rather than the
monomorphizer.
## Additional Context
This doesn't fix the issue, I just thought it'd be slightly nicer UX
going forward if we didn't panic here.
## Documentation\*
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.1 parent 4020e77 commit d44f882
3 files changed
Lines changed: 28 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
347 | 355 | | |
348 | 356 | | |
349 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
131 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
1275 | 1279 | | |
1276 | 1280 | | |
1277 | 1281 | | |
| 1282 | + | |
1278 | 1283 | | |
1279 | 1284 | | |
1280 | | - | |
| 1285 | + | |
1281 | 1286 | | |
1282 | 1287 | | |
1283 | 1288 | | |
| |||
1747 | 1752 | | |
1748 | 1753 | | |
1749 | 1754 | | |
1750 | | - | |
| 1755 | + | |
| 1756 | + | |
1751 | 1757 | | |
1752 | 1758 | | |
1753 | 1759 | | |
| |||
1767 | 1773 | | |
1768 | 1774 | | |
1769 | 1775 | | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
1773 | 1783 | | |
1774 | 1784 | | |
1775 | 1785 | | |
1776 | 1786 | | |
1777 | | - | |
| 1787 | + | |
1778 | 1788 | | |
1779 | 1789 | | |
1780 | 1790 | | |
| |||
0 commit comments