Index: trunk/ippScripts/scripts/magic_destreak_revert.pl
===================================================================
--- trunk/ippScripts/scripts/magic_destreak_revert.pl	(revision 26290)
+++ trunk/ippScripts/scripts/magic_destreak_revert.pl	(revision 26460)
@@ -294,4 +294,8 @@
         run(command => $command, verbose => $verbose);
 
+    if (!defined $error_code) {
+        print STDERR "run( $command ) returned undef error_code!!!!!\n");
+        return $PS_EXIT_UNKNOWN_ERROR;
+    }
     return $error_code >> 8;
 }
@@ -392,5 +396,5 @@
     my $command = "$magicdstool -updaterun";
     $command   .= " -magic_ds_id $magic_ds_id";
-    $command   .= " -fault $exit_code";
+    $command   .= " -set_state failed_revert";
     $command   .= " -dbname $dbname" if defined $dbname;
 
