Index: trunk/pswarp/src/pswarpDefine.c
===================================================================
--- trunk/pswarp/src/pswarpDefine.c	(revision 12826)
+++ trunk/pswarp/src/pswarpDefine.c	(revision 13109)
@@ -65,9 +65,21 @@
     }
     if (bilevelAstrometry) {
-        pmAstromReadBilevelMosaic (skycell->fpa, phu->header);
-        pmAstromReadBilevelChip (chip, hdu->header);
+        if (!pmAstromReadBilevelMosaic (skycell->fpa, phu->header)) {
+            psError(PS_ERR_UNKNOWN, false, "Unable to read bilevel mosaic astrometry for skycell.");
+            psFree(view);
+            return false;
+        }
+        if (!pmAstromReadBilevelChip (chip, hdu->header)) {
+            psError(PS_ERR_UNKNOWN, false, "Unable to read bilevel chip astrometry for skycell.");
+            psFree(view);
+            return false;
+        }
     } else {
         // we use a default FPA pixel scale of 1.0
-        pmAstromReadWCS (skycell->fpa, chip, hdu->header, 1.0);
+        if (!pmAstromReadWCS (skycell->fpa, chip, hdu->header, 1.0)) {
+            psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry for skycell.");
+            psFree(view);
+            return false;
+        }
     }
 
