Add extra information to FormatException.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//389603002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/json_rpc_2@38181 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/test/server/parameters_test.dart b/test/server/parameters_test.dart
index 64fe232..3de0359 100644
--- a/test/server/parameters_test.dart
+++ b/test/server/parameters_test.dart
@@ -229,7 +229,8 @@
     test("[].asDateTime fails for invalid date/times", () {
       expect(() => parameters['string'].asDateTime,
           throwsInvalidParams('Parameter "string" for method "foo" must be a '
-              'valid date/time, but was "zap".'));
+              'valid date/time, but was "zap".\n'
+              'Invalid date format'));
     });
 
     test("[].asUri returns URI parameters", () {
@@ -262,9 +263,7 @@
       expect(() => parameters['invalid-uri'].asUri,
           throwsInvalidParams('Parameter "invalid-uri" for method "foo" must '
               'be a valid URI, but was "http://[::1".\n'
-              'Missing end `]` to match `[` in host at position 7.\n'
-              'http://[::1\n'
-              '       ^'));
+              'Missing end `]` to match `[` in host'));
     });
 
     group("with a nested parameter map", () {