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

Unified Diff: utils/pub/validator.dart

Issue 11557008: Make pub publish more user friendly: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge in path changes. Created 8 years 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/path.dart ('k') | utils/pub/validator/lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator.dart
diff --git a/utils/pub/validator.dart b/utils/pub/validator.dart
index 3e491a93a3954bc935116af4c4ded23c436ebb43..5c0c8507ce5e430629c677341f4737d2aedb681b 100644
--- a/utils/pub/validator.dart
+++ b/utils/pub/validator.dart
@@ -57,17 +57,17 @@ abstract class Validator {
var warnings = flatten(validators.map((validator) => validator.warnings));
if (!errors.isEmpty) {
- log.error("== Errors:");
+ log.error("Missing requirements:");
for (var error in errors) {
- log.error("* $error");
+ log.error("* ${Strings.join(error.split('\n'), '\n ')}");
}
log.error("");
}
if (!warnings.isEmpty) {
- log.warning("== Warnings:");
+ log.warning("Suggestions:");
for (var warning in warnings) {
- log.warning("* $warning");
+ log.warning("* ${Strings.join(warning.split('\n'), '\n ')}");
}
log.warning("");
}
« no previous file with comments | « utils/pub/path.dart ('k') | utils/pub/validator/lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698