From ac7be6d34092a9444db9ab6754bdc838d7c26e45 Mon Sep 17 00:00:00 2001 From: Jarrod Linahan Date: Fri, 7 Dec 2018 17:58:14 +1100 Subject: [PATCH] missing dep --- lib/machines/strip-exif.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/machines/strip-exif.js b/lib/machines/strip-exif.js index 9991653..861e170 100644 --- a/lib/machines/strip-exif.js +++ b/lib/machines/strip-exif.js @@ -61,7 +61,7 @@ module.exports = { }, fn: function(inputs, exits) { - // var im = require('imagickal'); + const fs = require('fs'); const sharp = require('sharp'); if (inputs.source === inputs.dest) { @@ -74,7 +74,7 @@ module.exports = { // Check if the source file is readable. fs.access(inputs.source, fs.constants.R_OK, (err) => { - if (err) { throw 'unreadable'; } + if (err) { return exits.unreadable('Unable to read source file'); } // Basically just make a clone of the source in the destination minus metadata sharp(inputs.source) -- 2.18.1