Skip to content

Commit

Permalink
Change param validation to verbose output (#98)
Browse files Browse the repository at this point in the history
* Change param validation to warning

* fix typo

* more precise text

* change warning to verbose output
  • Loading branch information
hjorslev committed Jun 1, 2024
1 parent 77e53ad commit fd3b0e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SteamPS/Public/Server/Update-SteamApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Update-SteamApp {
.EXAMPLE
Update-SteamApp -ApplicationName 'Arma 3' -Credential 'Toby' -Path 'C:\DedicatedServers\Arma3'
Because there are multiple hits when searching for Arma 3, the user will be promoted to select the right application.
Because there are multiple hits when searching for Arma 3, the user will be promted to select the right application.
.EXAMPLE
Update-SteamApp -AppID 376030 -Path 'C:\DedicatedServers\ARK-SurvivalEvolved'
Expand Down Expand Up @@ -70,7 +70,7 @@ function Update-SteamApp {
)]
[ValidateScript({
if ($null -eq (Get-SteamApp -ApplicationID $_)) {
throw "ApplicationID $_ couldn't be found."
Write-Verbose -Message "ApplicationID $_ couldn't be found using the Steam Web API. Continuing anyway as the application might exist."
}
$true
})]
Expand Down

0 comments on commit fd3b0e6

Please sign in to comment.