fix(error.go) fix type inconsistence