Handle error code in #convert