JavaScript, <strike>103</strike> <strike>101</strike> <strike>99</strike> 97
-

This implementation is based on primo's comprehensive description of the algorithm he used.

    for(e=l=x=prompt(g=1e5);--g;y=x>1?1-1/x:x-1,l=y/g+(y<0?-y:y)*l)
        e=1+e/g*x;
    alert([e,x>0?l:"ERROR"])

Edit:<br>
- Trying to catch Perl. Stole a byte back from primo by copying his branch. :)<br>
- 2 more bytes courtesy of primo.