Skip to content

Update-DbaInstance - Add early validation for empty -Path parameter#10283

Open
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-10266-20260323-1343
Open

Update-DbaInstance - Add early validation for empty -Path parameter#10283
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-10266-20260323-1343

Conversation

@andreasjordan
Copy link
Collaborator

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

Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update-DbaInstance not working

1 participant