error checking in eqdsk