Skip to content

Commit f4677b9

Browse files
authored
Merge pull request microsoft#283 from SQLvariant/SQLvariant-Examples-2020-04
Update Copy-RsSubscription.ps1
2 parents 7d55f58 + 57ae72c commit f4677b9

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+
Write-Error "Error occurred while creating subscription $($sub.SubscriptionId) because: $($_.Exception.Message)"
151151
}
152152
}
153153
}

0 commit comments

Comments
 (0)