Index: tools/testing/dart/status_expression.dart |
diff --git a/tools/testing/dart/status_expression.dart b/tools/testing/dart/status_expression.dart |
index 934ce59d200fead3061435973737cf46413bab4f..95f175cfe852896fa47a265096485ebcb1168b8b 100644 |
--- a/tools/testing/dart/status_expression.dart |
+++ b/tools/testing/dart/status_expression.dart |
@@ -56,7 +56,7 @@ class Tokenizer { |
List<String> tokenize() { |
if (!testRegexp.hasMatch(expression)) { |
- throw new ExpectException("Syntax error in '$expression'"); |
+ throw new FormatException("Syntax error in '$expression'"); |
} |
for (Match match in regexp.allMatches(expression)) tokens.add(match[0]); |
return tokens; |