Commit acdc9e0
committed
Fix argument validation, error handling, and exception correctness
- Replace manual argument throws with ThrowIf helpers (ThrowIfNull, ThrowIfNullOrEmpty) in ElasticReadOnlyRepositoryBase
- Fix VersionedIndex alias error using wrong response variable, which reported the wrong error message and exception on alias fetch failures
- Fix incomplete error message in AliasExistsAsync (missing 'exists')
- Log error when RefreshForConsistency fails instead of silently swallowing
Made-with: Cursor1 parent c0d1fa4 commit acdc9e0
File tree
2 files changed
+10
-11
lines changed- src/Foundatio.Repositories.Elasticsearch
- Configuration
- Repositories
2 files changed
+10
-11
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
| 360 | + | |
362 | 361 | | |
363 | 362 | | |
364 | 363 | | |
| |||
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
440 | | - | |
441 | | - | |
| 439 | + | |
442 | 440 | | |
443 | 441 | | |
444 | 442 | | |
| |||
536 | 534 | | |
537 | 535 | | |
538 | 536 | | |
539 | | - | |
540 | | - | |
| 537 | + | |
541 | 538 | | |
542 | 539 | | |
543 | 540 | | |
| |||
835 | 832 | | |
836 | 833 | | |
837 | 834 | | |
838 | | - | |
839 | 835 | | |
840 | 836 | | |
841 | 837 | | |
842 | 838 | | |
843 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
844 | 843 | | |
845 | 844 | | |
846 | 845 | | |
| |||
0 commit comments