Commit f5b4600
committed
fix(feishu): re-throw unresolved SecretRef errors from media fallbacks
Previously, both catch blocks in feishuOutbound.sendText (local-image
auto-convert path) and feishuOutbound.sendMedia silently swallowed all
errors, including FeishuSecretRefUnavailableError. When appSecret (or
another credential) was configured with an exec/file/keychain SecretRef
that had not been pre-resolved by the gateway, the error was caught and
the send degraded to a plain-text URL link with only a console.error,
giving the caller no indication that credentials were missing.
Re-throw FeishuSecretRefUnavailableError in both catch blocks so the
configuration error surfaces immediately instead of being masked by the
fallback path.
Two new tests in outbound.test.ts cover both catch sites.
Fixes #893381 parent 71e1a39 commit f5b4600
1 file changed
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
343 | 344 | | |
344 | 345 | | |
345 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
346 | 371 | | |
347 | 372 | | |
348 | 373 | | |
| |||
1206 | 1231 | | |
1207 | 1232 | | |
1208 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1209 | 1258 | | |
1210 | 1259 | | |
1211 | 1260 | | |
| |||
0 commit comments