Commit 36b53a4
Fix unchecked Result in get_llm_metadata()
Summary:
In get_llm_metadata(), module->get() returns a Result but the old code called
.get() without checking if the result is ok. If the method exists in the model
(checked via method_names.count()) but module->get() still fails, this indicates
a serious issue with the .pte file.
Use ET_UNWRAP to propagate the error instead of silently falling back to
defaults, which could mask .pte corruption.
Differential Revision: D997076951 parent a3a08c1 commit 36b53a4
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
0 commit comments