Skip to content

Commit ef2595d

Browse files
committed
Update Copy-RsSubscription.ps1
Removed throw keyword from catch block so that Process loop could continue trying to copy additional subscriptions in pipeline.
1 parent d8370d5 commit ef2595d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReportingServicesTools/Functions/CatalogItems/Copy-RsSubscription.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function Copy-RsSubscription
147147
}
148148
catch
149149
{
150-
throw (New-Object System.Exception("Exception occurred while creating subscription! $($_.Exception.Message)", $_.Exception))
150+
"Error occurred while creating subscription $($subscriptionId)! $($_.Exception.Message)"
151151
}
152152
}
153153
}

0 commit comments

Comments
 (0)