sapling/eden/locale
Adam Simpkins 5976103fd6 add a copyright header to glibc_en.po
Summary:
Update this file with a copyright header to satisfy our open source lint
checks.

Reviewed By: chadaustin

Differential Revision: D15105844

fbshipit-source-id: ba2bfe0e62899a20d0fb526bc247159643e1ecab
2019-04-26 14:38:27 -07:00
..
glibc_en.mo add a custom translation for ENOTCONN 2019-03-07 12:55:04 -08:00
glibc_en.po add a copyright header to glibc_en.po 2019-04-26 14:38:27 -07:00
README.md add a custom translation for ENOTCONN 2019-03-07 12:55:04 -08:00

This directory contains some locale files that can be installed to tweak some common system error messages.

In particular this changes the message replaces the error message for ENOTCONN to suggest that the user try running eden doctor if they are in an Eden checkout. When using an Eden checkout, receiving an ENOTCONN error from the filesystem normally means that the checkout has been unmounted. This can happen if the edenfs daemon has died or been restarted.

Not all ENOTCONN errors are related to Eden. Since this file just globally replaces the translation it can end up showing this advice in some cases that aren't relevant. However ENOTCONN is fairly rare in other circumstances. It can be generated by socket APIs, but normally only as a result of programmer error: attempting to read from or get the peer name on a network socket that was never connected, or that was already explicitly shutdown. These other situations primarily only occur for developers writing network programs and are rare for other users.

If you edit glibc_en.po you can regenerate glibc_en.mo by running msgfmt -o glibc_en.mo glibc_en.po (msgfmt is part of GNU gettext)