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

Unified Diff: pkg/polymer/lib/src/build/build_filter.dart

Issue 513023002: Step one towards stable error messages with details: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « pkg/polymer/CHANGELOG.md ('k') | pkg/polymer/lib/src/build/build_log_combiner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/build_filter.dart
diff --git a/pkg/polymer/lib/src/build/build_filter.dart b/pkg/polymer/lib/src/build/build_filter.dart
index 8b7d56f8cadf628284f8b70132de106fee442d91..f3efbbb6718e3dc234eae81692fafa04afe4b5b5 100644
--- a/pkg/polymer/lib/src/build/build_filter.dart
+++ b/pkg/polymer/lib/src/build/build_filter.dart
@@ -9,6 +9,7 @@ library polymer.src.build.build_filter;
import 'dart:async';
import 'package:barback/barback.dart';
+import 'package:code_transformers/messages/build_logger.dart';
import 'common.dart';
/// Removes any files not needed for deployment, such as internal build
@@ -34,7 +35,9 @@ class BuildFilter extends Transformer with PolymerTransformer {
if (transform.primaryInput.id.extension == _DATA_EXTENSION) {
return null;
}
- return readPrimaryAsHtml(transform).then((document) {
+ var logger = new BuildLogger(transform,
+ convertErrorsToWarnings: !options.releaseMode);
+ return readPrimaryAsHtml(transform, logger).then((document) {
// Keep .html files that don't use polymer, since the app developer might
// have non-polymer entrypoints.
if (document.querySelectorAll('polymer-element').isEmpty) {
« no previous file with comments | « pkg/polymer/CHANGELOG.md ('k') | pkg/polymer/lib/src/build/build_log_combiner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698