Index: trunk/psastro/src/psastroMosaicChipAstrom.c
===================================================================
--- trunk/psastro/src/psastroMosaicChipAstrom.c	(revision 41498)
+++ trunk/psastro/src/psastroMosaicChipAstrom.c	(revision 41499)
@@ -14,5 +14,5 @@
 # define NONLIN_TOL 0.001 ///< tolerance in pixels
 
-bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *recipe, int iteration) {
+bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *stats, psMetadata *recipe, int iteration) {
 
     bool status;
@@ -83,5 +83,8 @@
     if (fGood < minGoodChipFraction) {
       psWarning ("Too few good chips (%d of %d = %.2f), setting bad quality for this exposure\n", nChipGood, (nChipGood + nChipFail), fGood);
-      // return false;
+      // NOTE: set bad data quality here
+      if (stats && psMetadataLookupS32(NULL, stats, "QUALITY") == 0) {
+	  psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, "Mosaic astrometry failed", PSASTRO_ERR_DATA);
+      }
     }
 
