Author: kfogel Date: Mon Feb 12 21:53:07 2018 New Revision: 1824080 URL: http://svn.apache.org/viewvc?rev=1824080&view=rev Log: Give correct error message on failure to import Subversion Python bindings.
* tools/hook-scripts/mailer/mailer.py: If the Subversion Python bindings could not be found for import at all, have the error message state that clearly, instead of duplicating the error message used for importing too old a version of the bindings. Reviewed by: cmpilato Thread: https://mail-archives.apache.org/mod_mbox/subversion-dev/201802.mbox/%3C874lmlly1l.fsf%40red-bean.com%3E From: Karl Fogel To: dev@ Subject: [PATCH] Better error message for svn bindings import in mailer.py. Date: Mon, 12 Feb 2018 15:04:38 -0600 Message-ID: <874lmlly1l....@red-bean.com> Modified: subversion/trunk/tools/hook-scripts/mailer/mailer.py Modified: subversion/trunk/tools/hook-scripts/mailer/mailer.py URL: http://svn.apache.org/viewvc/subversion/trunk/tools/hook-scripts/mailer/mailer.py?rev=1824080&r1=1824079&r2=1824080&view=diff ============================================================================== --- subversion/trunk/tools/hook-scripts/mailer/mailer.py (original) +++ subversion/trunk/tools/hook-scripts/mailer/mailer.py Mon Feb 12 21:53:07 2018 @@ -77,9 +77,7 @@ try: import svn.repos import svn.core except ImportError: - sys.stderr.write( - "You need version %s or better of the Subversion Python bindings.\n" \ - % ".".join([str(x) for x in _MIN_SVN_VERSION])) + sys.stderr.write("Unable to import Subversion Python bindings.\n") sys.exit(1) if _MIN_SVN_VERSION > [svn.core.SVN_VER_MAJOR, svn.core.SVN_VER_MINOR,