diff --git a/utility/exif/94-exif.js b/utility/exif/94-exif.js index 316e04f9..2a783d1a 100644 --- a/utility/exif/94-exif.js +++ b/utility/exif/94-exif.js @@ -78,29 +78,27 @@ module.exports = function(RED) { if((exifData.hasOwnProperty("gps")) && (Object.keys(exifData.gps).length !== 0)) { addMsgLocationDataFromExifGPSData(msg); } - else { - node.log("The incoming image did not contain Exif GPS data."); - } + //else { node.log("The incoming image did not contain Exif GPS data."); } } else { - node.warn("The incoming image did not contain any Exif data, nothing to do. "); + node.warn("The incoming image did not contain any Exif data, nothing to do."); } } node.send(msg); }); } else { - node.error("Invalid payload received, the Exif node cannot proceed, no messages sent."); + node.error("Invalid payload received, the Exif node cannot proceed, no messages sent.",msg); return; } } else { - node.error("No payload received, the Exif node cannot proceed, no messages sent."); + node.error("No payload received, the Exif node cannot proceed, no messages sent.",msg); return; } } catch (error) { - node.error("An error occurred while extracting Exif information. Please check the log for details."); + node.error("An error occurred while extracting Exif information. Please check the log for details.",msg); node.log('Error: '+error.message); return; } diff --git a/utility/exif/package.json b/utility/exif/package.json index 3018b699..fec3db6c 100644 --- a/utility/exif/package.json +++ b/utility/exif/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-exif", - "version" : "0.0.6", + "version" : "0.0.7", "description" : "A Node-RED node that extracts Exif information from JPEG image buffers.", "dependencies" : { "exif": "0.4.0"