Commit b0a166d
fix(serve): replace catch unreachable with try in tri_serve.zig init
ServerStatus.init now returns !ServerStatus instead of ServerStatus,
properly propagating allocation failures instead of using catch unreachable.
Also updated all call sites to use try.
Closes #156
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c16ed8f commit b0a166d
1 file changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 91 | + | |
| 92 | + | |
100 | 93 | | |
101 | 94 | | |
102 | 95 | | |
103 | 96 | | |
104 | | - | |
| 97 | + | |
105 | 98 | | |
106 | 99 | | |
107 | 100 | | |
| |||
127 | 120 | | |
128 | 121 | | |
129 | 122 | | |
130 | | - | |
| 123 | + | |
131 | 124 | | |
132 | 125 | | |
133 | 126 | | |
| |||
1056 | 1049 | | |
1057 | 1050 | | |
1058 | 1051 | | |
1059 | | - | |
| 1052 | + | |
1060 | 1053 | | |
1061 | 1054 | | |
1062 | 1055 | | |
| |||
0 commit comments