mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-10-31 23:15:28 +08:00 
			
		
		
		
	try catch to tryand see error??
This commit is contained in:
		| @@ -420,6 +420,8 @@ private void PublishPackages(ConvertableDirectoryPath packagesDir, ConvertableFi | |||||||
| /// gets the resource from the specified url | /// gets the resource from the specified url | ||||||
| private string GetResource(string url) | private string GetResource(string url) | ||||||
| { | { | ||||||
|  | 	try | ||||||
|  | 	{ | ||||||
| 		Information("Getting resource from " + url); | 		Information("Getting resource from " + url); | ||||||
|  |  | ||||||
| 		var assetsRequest = System.Net.WebRequest.CreateHttp(url); | 		var assetsRequest = System.Net.WebRequest.CreateHttp(url); | ||||||
| @@ -437,6 +439,12 @@ private string GetResource(string url) | |||||||
| 			 | 			 | ||||||
| 			return response; | 			return response; | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
|  | 	catch(Exception exception) | ||||||
|  | 	{ | ||||||
|  | 		Information("There was an exception " + exception); | ||||||
|  | 		throw; | ||||||
|  | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
| private bool ShouldPublishToUnstableFeed(string filter, string branchName) | private bool ShouldPublishToUnstableFeed(string filter, string branchName) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tom Pallister
					Tom Pallister