Index: trunk/ppSub/src/ppSubReadoutInverse.c
===================================================================
--- trunk/ppSub/src/ppSubReadoutInverse.c	(revision 24255)
+++ trunk/ppSub/src/ppSubReadoutInverse.c	(revision 26982)
@@ -34,10 +34,10 @@
     pmHDU *invHDU = invFPA->hdu;          // Inverse HDU
     if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) {
-        psError(PS_ERR_UNKNOWN, false, "Unable to write WCS astrometry to PPSUB.INVERSE.");
+        psError(psErrorCodeLast(), false, "Unable to write WCS astrometry to PPSUB.INVERSE.");
         return false;
     }
     // Read from newly written astrometry so that it exists in the "inverse" FPA (for sources)
     if (!pmAstromReadWCS(invFPA, invChip, invHDU->header, 1.0)) {
-        psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry.");
+        psError(psErrorCodeLast(), false, "Unable to read WCS astrometry.");
         return false;
     }
