check the yaml file for any possible syntax error
var fs = require('fs');
var check = require('yaml-syntax');
var file = __dirname + '/test.yaml';
var src = fs.readFileSync(file);
var err = check(src, file);
if (err) {
console.error(err);
console.error(Array(76).join('-'));
}