Change warning to log place first and then link

This commit is contained in:
Vojta Jina 2011-05-19 16:22:13 +02:00 committed by Igor Minar
parent fd357b4cd2
commit e389911a35

View file

@ -680,7 +680,7 @@ function merge(docs){
// check links - do they exist ?
doc.links.forEach(function(link) {
if (!byFullId[link]) console.log('WARNING: Non existing link "' + link + '" in ' + doc.section + '/' + doc.id);
if (!byFullId[link]) console.log('WARNING: In ' + doc.section + '/' + doc.id + ', non existing link: "' + link + '"');
});
// merge into parents