Skip to content

Commit

Permalink
fix(opencv): gracefully fail on error
Browse files Browse the repository at this point in the history
  • Loading branch information
jakowenko committed Jun 17, 2022
1 parent 88023ca commit 84ac482
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/util/opencv/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module.exports.faceCount = async (path) => {
return faceCount;
} catch (error) {
console.error(`opencv error: `, error.message || error);
return 1;
}
};

Expand Down

0 comments on commit 84ac482

Please sign in to comment.