From 835e3250cc2f43b82d66d08e77f7373c999b45e4 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 4 May 2018 08:23:06 -0700 Subject: [PATCH] Fix call to 'fail' in jakefile (#23845) --- Jakefile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jakefile.js b/Jakefile.js index aed3f99d5e8..2eeccdd7a4f 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -650,8 +650,8 @@ task("LKG", ["clean", "release", "local"].concat(libraryTargets), function () { return !fs.existsSync(f); }); if (missingFiles.length > 0) { - fail("Cannot replace the LKG unless all built targets are present in directory " + builtLocalDirectory + - ". The following files are missing:\n" + missingFiles.join("\n")); + fail(new Error("Cannot replace the LKG unless all built targets are present in directory " + builtLocalDirectory + + ". The following files are missing:\n" + missingFiles.join("\n"))); } // Copy all the targets into the LKG directory jake.mkdirP(LKGDirectory);