Browse Source

add validation to parseResponse in JS

master
cinnaboot 7 years ago
parent
commit
068ed72df2
  1. 5
      video_metadata/static/file_listing.js

5
video_metadata/static/file_listing.js

@ -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);

Loading…
Cancel
Save