proxyer: improve error handle code with golang