Fix error in error handling

Dur. Knew I shouldn't have made changes to this while on a plane.