diff --git a/CHANGELOG.md b/CHANGELOG.md index cad851ca..634bcf04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fixed `Cannot bind argument to parameter 'Message' because it is null.` error + message occurring when displaying messages on systems not using `en-US` + UI culture - Fixes [Issue #373](https://github.com/PlagueHO/CosmosDB/issues/373). + ## [4.2.0] - 2020-06-01 ### Added diff --git a/source/prefix.ps1 b/source/prefix.ps1 index ebedf4f1..f75824ec 100644 --- a/source/prefix.ps1 +++ b/source/prefix.ps1 @@ -22,7 +22,7 @@ if ([System.String]::IsNullOrEmpty($culture)) } else { - if (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath $culture)) + if (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath $culture))) { $culture = 'en-US' }