Skip to content

Commit e779c9b

Browse files
committed
(#169) Applied remark from review
1 parent 656332a commit e779c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/provider/opencv/template-matching-finder.class.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default class TemplateMatchingFinder implements FinderInterface {
141141
const bestMatch = matches.pop();
142142
if (bestMatch) {
143143
if(bestMatch.error) {
144-
throw new Error(bestMatch.error.message)
144+
throw bestMatch.error
145145
}else {
146146
throw new Error(`No match with required confidence ${matchRequest.confidence}. Best match: ${bestMatch.confidence} at ${bestMatch.location}`)
147147
}

0 commit comments

Comments
 (0)