Skip to content

Commit

Permalink
read throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
MyDrift-user committed Aug 25, 2024
1 parent 494ad3c commit 8b158df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/private/Invoke-WinUtilTweaks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Invoke-WinUtilTweaks {
$changeservice = $false
}
} catch {
# do nothing
write-host "Unable to get service $($psitem.Name)"
}
}

Expand Down
2 changes: 1 addition & 1 deletion functions/private/Set-WinUtilService.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Function Set-WinUtilService {
# Service exists, proceed with changing properties
$service | Set-Service -StartupType $StartupType -ErrorAction Stop
} catch {
# do nothing
write-host "Unable to get service $($Name)"
}
}

0 comments on commit 8b158df

Please sign in to comment.