print errors when tests fail
This commit is contained in:
parent
9ad3b540f8
commit
0b5d35c8d0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user