From d0b30fdea6fc7e30922ff57de70ca077e3f32346 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Wed, 29 Apr 2020 21:28:13 +0200 Subject: [PATCH] Use `build.failBuild()` --- plugin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/index.js b/plugin/index.js index 67dcfdb..8392953 100644 --- a/plugin/index.js +++ b/plugin/index.js @@ -18,7 +18,7 @@ function netlifyPlugin(conf) { utils: { build } }) { if (!checkPaths) { - throw new Error( + build.failBuild( `checkPaths is undefined - please specify some checkPaths` ); }