summaryrefslogtreecommitdiff
path: root/cmdline/apt-cdrom.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-08-12 17:41:36 +0200
committerMichael Vogt <mvo@debian.org>2013-08-12 17:42:00 +0200
commit7dd5854b48f5d59c02fb0068d850384f3e678c67 (patch)
treee81ee587631ddacac399831ec0c675b65768d129 /cmdline/apt-cdrom.cc
parentca57fd4d8b854d97bd70efcf1018e34bc2ad4981 (diff)
improve error message
Diffstat (limited to 'cmdline/apt-cdrom.cc')
-rw-r--r--cmdline/apt-cdrom.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc
index 545edf439..a95970782 100644
--- a/cmdline/apt-cdrom.cc
+++ b/cmdline/apt-cdrom.cc
@@ -67,7 +67,8 @@ void pkgCdromTextStatus::Prompt(const char *Text)
char C;
cout << Text << ' ' << flush;
if (read(STDIN_FILENO,&C,1) < 0)
- _error->Errno("pkgCdromTextStatus::Prompt", "failed to prompt");
+ _error->Errno("pkgCdromTextStatus::Prompt",
+ "Failed to read from standard input (not a terminal?)");
if (C != '\n')
cout << endl;
}