Mercurial > hg > truffle
comparison mx/commands.py @ 9128:703228415b74
more accurate error message when launching a VM that has not yet been built
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 16 Apr 2013 11:33:20 +0200 |
parents | 9f361c0f912b |
children | fb73538b57c6 |
comparison
equal
deleted
inserted
replaced
9123:221ef4b022c5 | 9128:703228415b74 |
---|---|
362 hsdis([], copyToDir=_vmLibDirInJdk(jdk)) | 362 hsdis([], copyToDir=_vmLibDirInJdk(jdk)) |
363 except SystemExit: | 363 except SystemExit: |
364 pass | 364 pass |
365 else: | 365 else: |
366 if not exists(jdk): | 366 if not exists(jdk): |
367 mx.abort('The ' + build + ' VM has not been created - run "mx build ' + build + '"') | 367 vmOption = ' --vm ' + vmToCheck if vmToCheck else '' |
368 mx.abort('The ' + build + ' VM has not been created - run "mx' + vmOption + ' build ' + build + '"') | |
368 | 369 |
369 _installGraalJarInJdks(mx.distribution('GRAAL')) | 370 _installGraalJarInJdks(mx.distribution('GRAAL')) |
370 | 371 |
371 if vmToCheck is not None: | 372 if vmToCheck is not None: |
372 jvmCfg = _vmCfgInJdk(jdk) | 373 jvmCfg = _vmCfgInJdk(jdk) |