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