Skip to content

Commit

Permalink
🪲 [Fix]: Update verbose output in Set-ContextSetting to use context…
Browse files Browse the repository at this point in the history
… ID (#52)

## Description

- Update verbose output in `Set-ContextSetting` to use context ID

## Type of change

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [ ] 📖 [Docs]
- [x] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] ⚠️ [Security fix]
- [ ] 🚀 [Feature]
- [ ] 🌟 [Breaking change]

## Checklist

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
  • Loading branch information
MariusStorhaug authored Nov 21, 2024
1 parent 889ef4d commit 0929ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/public/ContextSetting/Set-ContextSetting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Set-ContextSetting {
}

if ($PSCmdlet.ShouldProcess($Name, "Set value [$Value]")) {
Write-Verbose "Setting [$Name] to [$Value] in [$($context.Name)]"
Write-Verbose "Setting [$Name] to [$Value] in [$ID]"
if ($context.PSObject.Properties[$Name]) {
$context.$Name = $Value
} else {
Expand Down

0 comments on commit 0929ce5

Please sign in to comment.