Bad scoping of error case.