New-CredentialStoreItem-Warn-If-CredentialStore-Doesnt-Exist #72
@ -84,7 +84,7 @@ function New-CredentialStoreItem {
|
|||||||
if (-not(Test-CredentialStore -Shared -Path $Path)) {
|
if (-not(Test-CredentialStore -Shared -Path $Path)) {
|
||||||
$MessageParams = @{
|
$MessageParams = @{
|
||||||
Exception = [System.IO.FileNotFoundException]::new(
|
Exception = [System.IO.FileNotFoundException]::new(
|
||||||
'Could not add anything into the given CredentialStore.'
|
'The given credential store ({0}) does not exist!' -f $Path
|
||||||
)
|
)
|
||||||
ErrorAction = "Stop"
|
ErrorAction = "Stop"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user