Index: trunk/ippTools/src/pzgetimfiles.c
===================================================================
--- trunk/ippTools/src/pzgetimfiles.c	(revision 17572)
+++ trunk/ippTools/src/pzgetimfiles.c	(revision 17647)
@@ -95,5 +95,5 @@
     if (exitStatus != 0) {
         // mark the summitExp row as faulted
-        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = 123 WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", filesetid, camera, telescope)) {
+        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %s WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", exitStatus, filesetid, camera, telescope)) {
             psError(PS_ERR_UNKNOWN, false, "database error");
         }
