changeset 18725:fdf29cc07ec2

Improved error message in mx tool when package statement cannot be found.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 19 Dec 2014 14:38:40 +0100
parents a49e0ed940c2
children 8153d8cf264c
files mxtool/mx.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Fri Dec 19 02:27:29 2014 +0100
+++ b/mxtool/mx.py	Fri Dec 19 14:38:40 2014 +0100
@@ -428,7 +428,7 @@
 
                         if matchFound:
                             simpleClassName = name[:-len('.java')]
-                            assert pkg is not None
+                            assert pkg is not None, 'could not find package statement in file ' + name
                             if pkgRoot is None or pkg.startswith(pkgRoot):
                                 pkgOutputDir = join(outputDir, pkg.replace('.', os.path.sep))
                                 if exists(pkgOutputDir):