diff mx/commands.py @ 11403:e45b540b0ef2

clearer error message
author Doug Simon <doug.simon@oracle.com>
date Fri, 23 Aug 2013 12:29:27 +0200
parents a8e618fd8868
children 821ed0a436f2
line wrap: on
line diff
--- a/mx/commands.py	Fri Aug 23 12:29:06 2013 +0200
+++ b/mx/commands.py	Fri Aug 23 12:29:27 2013 +0200
@@ -758,7 +758,7 @@
     vmArgs, tests = _extract_VM_args(args)
     for t in tests:
         if t.startswith('-'):
-            mx.abort('VM option ' + t + ' must precede first test name')
+            mx.abort('VM option ' + t + ' must precede ' + tests[0])
 
     def containsAny(c, substrings):
         for s in substrings: