Skip to content

Commit 8353f36

Browse files
committed
Formatting exception thrown in Profile Dissociation job.
Changing the exception thrown to a pre set one.
1 parent f57bb63 commit 8353f36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/StartAzureSiteRecoveryProtectionProfileDissociationJob.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ public override void ExecuteCmdlet()
7171
case ASRParameterSets.EnterpriseToAzure:
7272
if (this.ProtectionProfile.ReplicationProvider != Constants.HyperVReplicaAzure)
7373
{
74-
throw new Exception("Please provide recovery contianer object.");
74+
throw new InvalidOperationException(
75+
string.Format(
76+
Properties.Resources.IncorrectReplicationProvider,
77+
this.ProtectionProfile.ReplicationProvider));
7578
}
7679
else
7780
{

0 commit comments

Comments
 (0)