Print a more useful error message for bug #150488.
authorZac Medico <zmedico@gentoo.org>
Tue, 10 Oct 2006 03:40:14 +0000 (03:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 Oct 2006 03:40:14 +0000 (03:40 -0000)
svn path=/main/trunk/; revision=4646

bin/repoman

index 2f06a70b2faedb28b67b7667019b5dce4e597b66..d166de5a9ed0778457b7c9f6c8ba8bd4e8f391d8 100755 (executable)
@@ -451,7 +451,8 @@ if not portdir_overlay:
        portdir = portdir_overlay
 
 if not portdir_overlay:
-       print darkred("Unable to determine PORTDIR.")
+       sys.stderr.write("Repoman is unable to determine PORTDIR or PORTDIR_OVERLAY from" + \
+               " the current\nworking directory.\n")
        sys.exit(1)
 
 if not portdir: