Index: trunk/pstamp/scripts/pstamp_finish.pl
===================================================================
--- trunk/pstamp/scripts/pstamp_finish.pl	(revision 27896)
+++ trunk/pstamp/scripts/pstamp_finish.pl	(revision 28046)
@@ -176,4 +176,6 @@
         my $exp_id = $job->{exp_id};
 
+        my $error_string = get_error_string($fault);
+
         if (($fault eq $PSTAMP_DUP_REQUEST) and ($req_name eq "NULL")) {
             # this request had a duplicate request name yet the parser didn't give
@@ -220,5 +222,5 @@
 
                     # add line to the table definition file
-                    print $tdf "$rownum|$fault|$img_name|$job_id|";
+                    print $tdf "$rownum|$fault|$error_string|$img_name|$job_id|";
 
                     # ra_deg and dec_deg are the coordinates of center of the stamp
@@ -241,5 +243,5 @@
             } else {
                 print STDERR "no reglist file for job $job_id\n" if $verbose;
-                print $tdf "$rownum|$fault|0|$job_id|";
+                print $tdf "$rownum|$fault|$error_string|0|$job_id|";
                 print $tdf "0|0|";       # center of (non-existent) stamp
                 print $tdf "$exp_info|";
