Skip to content

Commit

Permalink
Merge pull request #34 from AzCiS/onesdk-avirupch
Browse files Browse the repository at this point in the history
Changing exception for Bug 2142619
  • Loading branch information
parvezah committed Mar 31, 2015
2 parents b189adf + b0bb062 commit 2ae6bcc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public override void ExecuteCmdlet()

if(EncryptionEnabled == true && (string.IsNullOrEmpty(EncryptionKey) || !IsValidAsciiString(EncryptionKey)))
{
throw new ArgumentNullException("EncryptionKey");
throw new ArgumentException(Resources.EncryptionKeyNotAcceptableMessage);
}

string encryptedKey = null;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ a special character</value>
</data>
<data name="SetAzureStorSimpleDeviceNoSettingsProvided" xml:space="preserve">
<value>No settings were provided for updating device details.</value>

</data>
<data name="EncryptionKeyNotAcceptableMessage" xml:space="preserve">
<value>Please provide an encryption key consisting of printable ASCII characters</value>
</data>
</root>

0 comments on commit 2ae6bcc

Please sign in to comment.