Commit 78de85651a9080252fff4cce4d93994aa926e37f
1 parent
1d7a77a9
Proper error handling
Showing
1 changed file
with
2 additions
and
1 deletions
openbr/plugins/gallery.cpp
| @@ -865,7 +865,8 @@ class FDDBGallery : public Gallery | @@ -865,7 +865,8 @@ class FDDBGallery : public Gallery | ||
| 865 | radius = detect[1].toFloat(); | 865 | radius = detect[1].toFloat(); |
| 866 | t.file.set("Face", QRectF(x - radius,y - radius,radius * 2.0, radius * 2.0)); | 866 | t.file.set("Face", QRectF(x - radius,y - radius,radius * 2.0, radius * 2.0)); |
| 867 | t.file.set("Confidence", detect[5].toFloat()); | 867 | t.file.set("Confidence", detect[5].toFloat()); |
| 868 | - } else { //throw an exception? | 868 | + } else { |
| 869 | + qFatal("Unknown FDDB annotation format."); | ||
| 869 | } | 870 | } |
| 870 | templates.append(t); | 871 | templates.append(t); |
| 871 | } | 872 | } |