swift recon check; add raise for unexpected errors