Author: mcantelon
Date: Mon Jan 16 12:17:50 2012
New Revision: 10684

Log:
Changed instance of die() to throw proper exeception.

Modified:
   trunk/lib/QubitFlatfileImport.class.php

Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php     Mon Jan 16 12:10:32 2012        
(r10683)
+++ trunk/lib/QubitFlatfileImport.class.php     Mon Jan 16 12:17:50 2012        
(r10684)
@@ -710,10 +710,10 @@
         $termId = array_search($termName, $terms);
         return $termId;
       } else {
-        die('Could not find "'. $termName .'" in '. $description .' terms 
array.');
+        throw new sfException('Could not find "'. $termName .'" in '. 
$description .' terms array.');
       }
     } else {
-      die('Could not find a way to handle '. $description .' value "'. $value 
.'".');
+      throw new sfException('Could not find a way to handle '. $description .' 
value "'. $value .'".');
     }
   }
 }

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to