GithubHelp home page GithubHelp logo

Comments (7)

yocontra avatar yocontra commented on July 20, 2024

@lazd Those are semi-standard Error attributes. Those are copied to make sure we don't lose any information from errors that come out of (for example) coffee, less, etc.

from gulp-util.

lazd avatar lazd commented on July 20, 2024

Makes sense. Should we be including those in our PluginError options as requested in lazd/gulp-handlebars#33? If so, many gulp plugins are not doing this and we should document that they ought to.

from gulp-util.

yocontra avatar yocontra commented on July 20, 2024

@lazd Yes if the underlying library (in your case handlebars) doesn't already include that information in the error you can include it yourself when (or if) you wrap it to improve stacktraces. The newest PluginError will display all error attributes when logged.

from gulp-util.

lazd avatar lazd commented on July 20, 2024

Sounds good, I'll include that. Is description necessary at all? It's already being passed as err.message.

from gulp-util.

yocontra avatar yocontra commented on July 20, 2024

@lazd No idea what that attribute is from

from gulp-util.

lazd avatar lazd commented on July 20, 2024

@contra, thanks! I'll just pass fileName.

from gulp-util.

yocontra avatar yocontra commented on July 20, 2024

@lazd I'd take a PR to document this stuff if you want to submit one

from gulp-util.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.