Skip to content

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

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-10266-20260323-1343
Mar 28, 2026
Merged

Update-DbaInstance - Add early validation for empty -Path parameter#10283
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-10266-20260323-1343

Conversation

@andreasjordan
Copy link
Copy Markdown
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>
@potatoqualitee potatoqualitee merged commit d655259 into development Mar 28, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-10266-20260323-1343 branch March 28, 2026 07:20
@potatoqualitee
Copy link
Copy Markdown
Member

thank you

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

2 participants