Index: /trunk/DataChallenge/inject_essence.pl
===================================================================
--- /trunk/DataChallenge/inject_essence.pl	(revision 10601)
+++ /trunk/DataChallenge/inject_essence.pl	(revision 10602)
@@ -44,5 +44,5 @@
 	my ( $success_exp, $error_code_exp, $full_buf_exp, $stdout_buf_exp, $stderr_buf_exp ) =
 	    run( command => $command_exp, verbose => 1 );
-	die "Unable to inject $exp: $error_code\n" if not $success_exp;
+	die "Unable to inject $exp: $error_code_exp\n" if not $success_exp;
 	
 	my @line = split(/\s+/, $$stdout_buf_exp[0]); # The output line, containing the exposure tag
@@ -53,5 +53,5 @@
 	my ( $success_imfile, $error_code_imfile, $full_buf_imfile,
 	     $stdout_buf_imfile, $stderr_buf_imfile ) = run( command => $command_imfile, verbose => 1 );
-	die "Unable to inject $exp imfile: $error_code\n" if not $success;
+	die "Unable to inject $exp imfile: $error_code_imfile\n" if not $success_imfile;
     }
 
