From f97585c593c40d36d7ff2a0ee7bf432269dc2b61 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 1 Dec 2008 23:49:14 +0000 Subject: [PATCH] Show also SVN revision in error message when a traceback raises. Fix typo. --- doc/ChangeLog | 2 +- lib/core/exception.py | 4 +++- lib/core/settings.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index 5518f1dd2..509a41a92 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -59,7 +59,7 @@ sqlmap (0.6.2-1) stable; urgency=low database name, table name and column(s) are provided; * Updated the database management system fingerprint checks to correctly identify MySQL 5.1.x, MySQL 6.0.x and PostgreSQL 8.3; - * More user-friendly warnin messages. + * More user-friendly warning messages. -- Bernardo Damele A. G. Sun, 2 Nov 2008 19:00:00 +0000 diff --git a/lib/core/exception.py b/lib/core/exception.py index 71973e2d4..8c1c21bb5 100644 --- a/lib/core/exception.py +++ b/lib/core/exception.py @@ -26,6 +26,7 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import sys +from lib.core.settings import REVISION from lib.core.settings import VERSION from lib.core.settings import VERSION_STRING @@ -90,7 +91,8 @@ def unhandledException(): errMsg = "unhandled exception in %s, please copy " % VERSION_STRING errMsg += "the command line and the following text and send by e-mail " errMsg += "to sqlmap-users@lists.sourceforge.net. The developers will " - errMsg += "fix it as soon as possible:\nsqlmap version: %s\n" % VERSION + errMsg += "fix it as soon as possible:\nsqlmap version: %s " % VERSION + errMsg += "(SVN revision: %s)\n" % REVISION errMsg += "Python version: %s\n" % sys.version.split()[0] errMsg += "Operating system: %s" % sys.platform return errMsg diff --git a/lib/core/settings.py b/lib/core/settings.py index 331ad437f..967b797fd 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -30,7 +30,8 @@ import sys # sqlmap version and site -VERSION = "0.6.3-rc2" +REVISION = "$Revision$" +VERSION = "0.6.3-rc3" VERSION_STRING = "sqlmap/%s" % VERSION SITE = "http://sqlmap.sourceforge.net"