Skip to content

Commit 2ae6bcc

Browse files
committed
Merge pull request #34 from AzCiS/onesdk-avirupch
Changing exception for Bug 2142619
2 parents b189adf + b0bb062 commit 2ae6bcc

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/ServiceManagement/StorSimple/Commands.StorSimple/Cmdlets/DataContainer/NewAzureStorSimpleDeviceVolumeContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public override void ExecuteCmdlet()
6767

6868
if(EncryptionEnabled == true && (string.IsNullOrEmpty(EncryptionKey) || !IsValidAsciiString(EncryptionKey)))
6969
{
70-
throw new ArgumentNullException("EncryptionKey");
70+
throw new ArgumentException(Resources.EncryptionKeyNotAcceptableMessage);
7171
}
7272

7373
string encryptedKey = null;

src/ServiceManagement/StorSimple/Commands.StorSimple/Properties/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ServiceManagement/StorSimple/Commands.StorSimple/Properties/Resources.resx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,8 @@ a special character</value>
528528
</data>
529529
<data name="SetAzureStorSimpleDeviceNoSettingsProvided" xml:space="preserve">
530530
<value>No settings were provided for updating device details.</value>
531-
531+
</data>
532+
<data name="EncryptionKeyNotAcceptableMessage" xml:space="preserve">
533+
<value>Please provide an encryption key consisting of printable ASCII characters</value>
532534
</data>
533535
</root>

0 commit comments

Comments
 (0)