doutangdan3588 2017-12-15 07:23
浏览 30

如何在golang中获取英语错误消息? [关闭]

When I run a program in go, in a W7 in Spanish, I get error messages in the SO language.

To provide an example:

2017/12/15 08:11:28 listen tcp :8080: socket: Se ha proporcionado un argumento no válido.

What can I do to get messages like this in English?

I emphasize that my need is not to have translated this specific message, but have the 'standard' English error in order to search for a solution.

  • 写回答

2条回答 默认 最新

  • dongzi0850 2017-12-15 10:24
    关注

    The error message means An invalid argument was provided, it is partly in english, so probably just the last bit was added by the program. What is the program and how are you calling it? It's possible the message comes from the OS, the program or libraries used by the program, but most likely it comes from the program concerned.

    Assuming you compiled the program, search for that string in your source code, including libraries, and change it to your desired string, then recompile.

    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?