Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 24764)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 24770)
@@ -70,5 +70,6 @@
 # Recipes to use as a function of detrend type
 $reduction = "DETREND" unless defined $reduction;
-my $recipe = $ipprc->reduction($reduction, $det_type . '_STACK'); # Recipe name to use
+my $recipe = $ipprc->reduction($reduction, $det_type . '_STACK') # Recipe name to use
+    or &my_die("Failed to find recipe for $det_type", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);
 
 # The output file rule name depends on the detrend type
