|
|
|
@ -44,6 +44,11 @@ function addContents(node, json) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function parseResponse(json, node) { |
|
|
|
function parseResponse(json, node) { |
|
|
|
|
|
|
|
if (node == null) { |
|
|
|
|
|
|
|
logError('parent node cannot be null'); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (json.errors.length > 0) { |
|
|
|
if (json.errors.length > 0) { |
|
|
|
for (let err of json.errors) |
|
|
|
for (let err of json.errors) |
|
|
|
logError(err); |
|
|
|
logError(err); |
|
|
|
|