print errors when tests fail

This commit is contained in:
Konstantin Käfer 2011-02-07 12:50:04 -05:00
parent 9ad3b540f8
commit 0b5d35c8d0

View File

@ -20,7 +20,11 @@ helper.files('rendering', 'mml', function(file) {
filename: file
}).render(mml, function (err, output) {
if (err) {
throw err;
if (Array.isArray(err)){
err.forEach(carto.writeError);
} else {
throw err;
}
} else {
renderResult = output;
var result = helper.resultFile(file);