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

Unified Diff: pkg/polymer/lib/src/build/polyfill_injector.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/lib/src/build/messages.dart ('k') | pkg/polymer/lib/src/build/script_compactor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/polyfill_injector.dart
diff --git a/pkg/polymer/lib/src/build/polyfill_injector.dart b/pkg/polymer/lib/src/build/polyfill_injector.dart
index a467af5fc11df78c30c49f0bd37c5d6004ae0d2f..36d830361329539169792ad88cc0bf355a4bd80a 100644
--- a/pkg/polymer/lib/src/build/polyfill_injector.dart
+++ b/pkg/polymer/lib/src/build/polyfill_injector.dart
@@ -11,6 +11,7 @@ import 'package:barback/barback.dart';
import 'package:html5lib/dom.dart' show
Document, DocumentFragment, Element, Node;
import 'package:html5lib/parser.dart' show parseFragment;
+import 'package:code_transformers/messages/build_logger.dart';
import 'common.dart';
/// Ensures that any scripts and polyfills needed to run a polymer application
@@ -32,7 +33,9 @@ class PolyfillInjector extends Transformer with PolymerTransformer {
}
Future apply(Transform transform) {
- return readPrimaryAsHtml(transform).then((document) {
+ var logger = new BuildLogger(transform,
+ convertErrorsToWarnings: !options.releaseMode);
+ return readPrimaryAsHtml(transform, logger).then((document) {
bool webComponentsFound = false;
Element dartJs;
final dartScripts = <Element>[];
« no previous file with comments | « pkg/polymer/lib/src/build/messages.dart ('k') | pkg/polymer/lib/src/build/script_compactor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698