Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra nulls in error messages from barback #20428

Closed
sigmundch opened this issue Aug 8, 2014 · 1 comment
Closed

extra nulls in error messages from barback #20428

sigmundch opened this issue Aug 8, 2014 · 1 comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.

Comments

@sigmundch
Copy link
Member

Not sure where these are coming from, but I'm seeing extra nulls in the error messages from barback:

    import 'package:barback/barback.dart';
    
    class A extends Transformer {
      A.asPlugin();
      isPrimary(id) => true;
    
      apply(Transform transform) =>
        transform.getInput(new AssetId('smoke', 'lib/broken.path'));
    }

running pub-build prints these errors:

Build error:
Transform A on test|lib/transformer.dart threw error: Could not find asset smoke|lib/broken.path.
null
null
Build error:
Transform A on test|web/a.dart threw error: Could not find asset smoke|lib/broken.path.
null
null
Build failed.

I see one instead of 2 nulls if I catch the error and print the contents myself. For example:

    import 'package:barback/barback.dart';
    
    class A extends Transformer {
      A.asPlugin();
      isPrimary(id) => true;
    
      apply(Transform transform) =>
        transform.getInput(new AssetId('smoke', 'lib/broken.path'))
            .catchError((e) => print("$e"));
    }

prints:
Building test... Could not find asset smoke|lib/broken.path.
null
Could not find asset smoke|lib/broken.path.
null
Building test...

@sigmundch sigmundch added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Aug 8, 2014
@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/barback#58.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.
Projects
None yet
Development

No branches or pull requests

3 participants