Commit fe79015
Update-DbaInstance - Add early validation for empty -Path parameter
Adds a check in the begin block to stop with a clear error message when
-Path is not provided and no default is configured via Set-DbatoolsConfig.
Previously this resulted in a confusing "Cannot index into a null array"
runtime error deep in the download logic.
Fixes #10266
(do Update-DbaInstance)
Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>1 parent 562e3ac commit fe79015
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
| |||
0 commit comments