Rename error code to error.name. close #9