# HG changeset patch # User Doug Simon # Date 1366104800 -7200 # Node ID 703228415b74a49627c797d765411adf353635cf # Parent 221ef4b022c517740f0d90aac5a9bde54d40243b more accurate error message when launching a VM that has not yet been built diff -r 221ef4b022c5 -r 703228415b74 mx/commands.py --- a/mx/commands.py Mon Apr 15 19:54:23 2013 +0200 +++ b/mx/commands.py Tue Apr 16 11:33:20 2013 +0200 @@ -364,7 +364,8 @@ pass else: if not exists(jdk): - mx.abort('The ' + build + ' VM has not been created - run "mx build ' + build + '"') + vmOption = ' --vm ' + vmToCheck if vmToCheck else '' + mx.abort('The ' + build + ' VM has not been created - run "mx' + vmOption + ' build ' + build + '"') _installGraalJarInJdks(mx.distribution('GRAAL'))