Skip to content

Commit 572fcca

Browse files
author
German Lena
committed
fix error handling
1 parent 075f59d commit 572fcca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ async function run(params) {
3232
await output.build(params);
3333
} catch (e) {
3434
logger.error(e);
35+
return e;
3536
}
3637
}
3738

lib/image_handler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function prepare(image, {pxWidth, pxHeight, imageBrighness, imageContrast, image
1717
}
1818

1919
if (imageContrast) {
20-
image.imageContrast(imageContrast);
20+
image.contrast(imageContrast);
2121
}
2222

2323
return image;

0 commit comments

Comments
 (0)