It can also be used in some cases as a useful debugging tool: some Linux (or at least UNIX) utilities (and even daemons) do not display error messages, only the errno value.
在有些情况下,它还可作为有用的调试工具使用:有些Linux(至少是UNIX)实用程序(甚至是守护程序)不显示错误消息,而只显示errno值。
If you create custom error messages, make sure that you do not display information that might help a malicious user compromise your application.
安全说明如果要创建自定义错误信息,请确保显示的信息不会帮助恶意用户损害您的应用程序。
应用推荐