aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2009-07-11 12:08:24 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2009-07-11 12:08:56 +0100
commitf20ba567136eff2ee4f95b82fbee343d6182ccc4 (patch)
tree07c4e19d27cdc0a0f7d73493d365621c7c9d36ed
parentc9ef0dbfabafa9e8f7fa26a393b356451744fd02 (diff)
downloadpaludis-f20ba567136eff2ee4f95b82fbee343d6182ccc4.tar.gz
paludis-f20ba567136eff2ee4f95b82fbee343d6182ccc4.tar.xz
Give a hint in the error message
-rw-r--r--paludis/util/pty.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/util/pty.cc b/paludis/util/pty.cc
index b5c97a8..603a85a 100644
--- a/paludis/util/pty.cc
+++ b/paludis/util/pty.cc
@@ -39,7 +39,7 @@ Pty::Pty()
_fds[0] = posix_openpt(O_RDWR | O_NOCTTY);
if (-1 == _fds[0])
- throw PtyError("posix_openpt(3) failed: " + std::string(std::strerror(errno)));
+ throw PtyError("posix_openpt(3) failed (is /dev/pts mounted?): " + std::string(std::strerror(errno)));
if (-1 == grantpt(_fds[0]))
{
close(_fds[0]);