Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 016d4d6 commit 30985e4Copy full SHA for 30985e4
src/build.ts
@@ -76,12 +76,13 @@ async function build(args: string[]) {
76
let skeleton;
77
try {
78
skeleton = yamlParser.load(_yaml);
79
- if (!skeleton || !skeleton.length) {
80
- throw new Error("Invalid yaml file contents");
+ if (!skeleton || !Object.keys(skeleton).length) {
+ throw new Error(`Skeleton at "${options.yaml}" is invalid`);
81
}
82
} catch (e) {
83
console.error("Error parsing yaml");
84
console.error(e.message);
85
+ return;
86
87
88
// validate skeleton based on skeleton json schema
0 commit comments