Skip to content

Commit

Permalink
Fix error messages (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeKjaer authored Apr 17, 2023
1 parent 9607e89 commit 35a6cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AzFilesHybrid/AzFilesHybrid.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function Assert-IsNativeAD {
if ("AD" -ne $DirectoryServiceOptions)
{
Write-Error -ErrorAction Stop -Message (
"The cmdlet is stopped due to the storage account '$StorageAccountName' having the DirectoryServiceOptions value: '$DirectoryServiceOptions'. " +
"The cmdlet is stopped due to the storage account '$($StorageAccount.StorageAccountName)' having the DirectoryServiceOptions value: '$DirectoryServiceOptions'. " +
"The DirectoryServiceOptions for the account needs to be 'AD' in order to run the cmdlet."
)
}
Expand Down Expand Up @@ -309,7 +309,7 @@ function Assert-IsUnconfiguredOrNativeAD {
)
{
Write-Error -ErrorAction Stop -Message (
"The cmdlet is stopped due to the storage account '$StorageAccountName' having the DirectoryServiceOptions value: '$DirectoryServiceOptions'. " +
"The cmdlet is stopped due to the storage account '$($StorageAccount.StorageAccountName)' having the DirectoryServiceOptions value: '$DirectoryServiceOptions'. " +
"The DirectoryServiceOptions for the account needs to be 'AD', 'None' or null in order to run the cmdlet."
)
}
Expand Down

0 comments on commit 35a6cac

Please sign in to comment.