moved error check

There is no err_id when the error is >60. Handle this better.