Skip to content

Commit

Permalink
Fix rekognition-analysis-s3-image
Browse files Browse the repository at this point in the history
  • Loading branch information
adambrgmn committed Aug 22, 2017
1 parent 8f0d0bb commit 6234b07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aws-node-rekognition-analysis-s3-image/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ module.exports.imageAnalysis = (event, context, callback) => {
callback(null, response);
})
.catch((error) => {
callback(error, null);
callback(null, {
statusCode: error.statusCode || 501,
headers: { 'Content-Type': 'text/plain' },
body: error.message || 'Internal server error',
});
});
};

0 comments on commit 6234b07

Please sign in to comment.