# HG changeset patch # User Thomas Wuerthinger # Date 1418996320 -3600 # Node ID fdf29cc07ec228f7ab252e268d305a46bd687b9f # Parent a49e0ed940c2cf0e9aa830d6dd5870e50cf1f846 Improved error message in mx tool when package statement cannot be found. diff -r a49e0ed940c2 -r fdf29cc07ec2 mxtool/mx.py --- 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):