Skip to content

Commit 8b1a45c

Browse files
committed
failing build if plugin fails
1 parent 37cf187 commit 8b1a45c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
const apiSecret = process.env.CLOUDINARY_API_SECRET;
5252

5353
if ( !cloudName ) {
54-
utils.build.failPlugin(ERROR_CLOUD_NAME_REQUIRED);
54+
utils.build.failBuild(ERROR_CLOUD_NAME_REQUIRED);
5555
return;
5656
}
5757

@@ -89,7 +89,7 @@ module.exports = {
8989
}
9090
}));
9191
} catch(e) {
92-
utils.build.failPlugin(e.message);
92+
utils.build.failBuild(e.message);
9393
return;
9494
}
9595

@@ -120,7 +120,7 @@ module.exports = {
120120
const apiSecret = process.env.CLOUDINARY_API_SECRET;
121121

122122
if ( !cloudName ) {
123-
utils.build.failPlugin(ERROR_CLOUD_NAME_REQUIRED);
123+
utils.build.failBuild(ERROR_CLOUD_NAME_REQUIRED);
124124
return;
125125
}
126126

@@ -208,7 +208,7 @@ module.exports = {
208208
const apiSecret = process.env.CLOUDINARY_API_SECRET;
209209

210210
if ( !cloudName ) {
211-
utils.build.failPlugin(ERROR_CLOUD_NAME_REQUIRED);
211+
utils.build.failBuild(ERROR_CLOUD_NAME_REQUIRED);
212212
return;
213213
}
214214

0 commit comments

Comments
 (0)