making error status public

we want to be able to access the Error value
so making it exported value