Simplification: set the scale back to the initial guess in case an
error has occured.  Also set errno back to zero to continue the
program properly.