From 78de85651a9080252fff4cce4d93994aa926e37f Mon Sep 17 00:00:00 2001 From: Brendan Klare Date: Thu, 29 Aug 2013 22:37:19 -0400 Subject: [PATCH] Proper error handling --- openbr/plugins/gallery.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index a52f13f..32b1d6a 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -865,7 +865,8 @@ class FDDBGallery : public Gallery radius = detect[1].toFloat(); t.file.set("Face", QRectF(x - radius,y - radius,radius * 2.0, radius * 2.0)); t.file.set("Confidence", detect[5].toFloat()); - } else { //throw an exception? + } else { + qFatal("Unknown FDDB annotation format."); } templates.append(t); } -- libgit2 0.21.4