Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: utils/tests/pub/pub_install_test.dart

Issue 10896051: Improve the error message for pub install without a name key in the pubspec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/pub/entrypoint.dart ('k') | utils/tests/pub/pub_update_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/pub_install_test.dart
diff --git a/utils/tests/pub/pub_install_test.dart b/utils/tests/pub/pub_install_test.dart
index e5d35397ca5f70cf2e390004c8f98f561b0575ce..a5b9aab6bf74a3a5fc9005708d8884f018b80a06 100644
--- a/utils/tests/pub/pub_install_test.dart
+++ b/utils/tests/pub/pub_install_test.dart
@@ -26,7 +26,8 @@ main() {
]).scheduleCreate();
schedulePub(args: ['install'],
- error: const RegExp(@'^"pubspec.yaml" must contain a "name" key\.'));
+ error: const RegExp(@'^"pubspec.yaml" is missing the required "name" '
+ @'field \(e\.g\. "name: myapp"\)\.'));
run();
});
« no previous file with comments | « utils/pub/entrypoint.dart ('k') | utils/tests/pub/pub_update_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698