mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Revert error handling in palette manager
This commit is contained in:
parent
fe63ab1242
commit
0fa165c606
@ -382,20 +382,9 @@ RED.palette.editor = (function() {
|
|||||||
catalogueLoadStart = Date.now();
|
catalogueLoadStart = Date.now();
|
||||||
var handled = 0;
|
var handled = 0;
|
||||||
catalogues.forEach(function(catalog,index) {
|
catalogues.forEach(function(catalog,index) {
|
||||||
$.ajax({
|
$.getJSON(catalog, {_: new Date().getTime()},function(v) {
|
||||||
dataType: "json",
|
handleCatalogResponse(null,catalog,index,v);
|
||||||
url: catalog,
|
refreshNodeModuleList();
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}).fail(function(jqxhr, textStatus, error) {
|
}).fail(function(jqxhr, textStatus, error) {
|
||||||
handleCatalogResponse(jqxhr,catalog,index);
|
handleCatalogResponse(jqxhr,catalog,index);
|
||||||
}).always(function() {
|
}).always(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user