mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Revert error handling in palette manager
This commit is contained in:
		| @@ -382,20 +382,9 @@ RED.palette.editor = (function() { | ||||
|             catalogueLoadStart = Date.now(); | ||||
|             var handled = 0; | ||||
|             catalogues.forEach(function(catalog,index) { | ||||
|                 $.ajax({ | ||||
|                   dataType: "json", | ||||
|                   url: catalog, | ||||
|                   data: {_: new Date().getTime()}, | ||||
|                   success: function(v) { | ||||
|                       try { | ||||
|                           var parsed = JSON.parse(v); | ||||
|                           handleCatalogResponse(null,catalog,index,parsed); | ||||
|                           refreshNodeModuleList(); | ||||
|                       } catch(err) { | ||||
|                           console.error(catalog,err.toString()) | ||||
|                           handleCatalogResponse(err,catalog,index); | ||||
|                       } | ||||
|                   } | ||||
|                 $.getJSON(catalog, {_: new Date().getTime()},function(v) { | ||||
|                     handleCatalogResponse(null,catalog,index,v); | ||||
|                     refreshNodeModuleList(); | ||||
|                 }).fail(function(jqxhr, textStatus, error) { | ||||
|                     handleCatalogResponse(jqxhr,catalog,index); | ||||
|                 }).always(function() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user