refactoring catching all exceptions as const ref
This commit is contained in:
committed by
Alexander Alekhin
parent
b74b05d1b3
commit
2da56d5af6
+1
-1
@@ -141,7 +141,7 @@ int main(int argc, char** argv)
|
||||
// Read in the data. This can fail if not valid
|
||||
try {
|
||||
read_imgList(imgList, images);
|
||||
} catch (cv::Exception& e) {
|
||||
} catch (const cv::Exception& e) {
|
||||
cerr << "Error opening file \"" << imgList << "\". Reason: " << e.msg << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user