Przeglądaj źródła

improve error message

Michael Vogt 13 lat temu
rodzic
commit
7dd5854b48
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      cmdline/apt-cdrom.cc

+ 2 - 1
cmdline/apt-cdrom.cc

@@ -67,7 +67,8 @@ void pkgCdromTextStatus::Prompt(const char *Text)
    char C;
    char C;
    cout << Text << ' ' << flush;
    cout << Text << ' ' << flush;
    if (read(STDIN_FILENO,&C,1) < 0)
    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')
    if (C != '\n')
       cout << endl;
       cout << endl;
 }
 }