Skip to content

Commit 835e325

Browse files
author
Andy
authored
Fix call to 'fail' in jakefile (microsoft#23845)
1 parent b172311 commit 835e325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jakefile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@ task("LKG", ["clean", "release", "local"].concat(libraryTargets), function () {
650650
return !fs.existsSync(f);
651651
});
652652
if (missingFiles.length > 0) {
653-
fail("Cannot replace the LKG unless all built targets are present in directory " + builtLocalDirectory +
654-
". The following files are missing:\n" + missingFiles.join("\n"));
653+
fail(new Error("Cannot replace the LKG unless all built targets are present in directory " + builtLocalDirectory +
654+
". The following files are missing:\n" + missingFiles.join("\n")));
655655
}
656656
// Copy all the targets into the LKG directory
657657
jake.mkdirP(LKGDirectory);

0 commit comments

Comments
 (0)