Skip to content

Commit

Permalink
Add source to messages
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 23, 2016
1 parent aaf7831 commit fa62c71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ function getClosest(pathname, references) {
*
* @param {File} file - Virtual file.
* @param {Array.<Node>} nodes - Offending nodes.
* @param {string} warning - Message.
* @param {string} message - Message.
*/
function warnAll(file, nodes, warning) {
function warnAll(file, nodes, message) {
nodes.forEach(function (node) {
file.warn(warning, node);
var warning = file.warn(message, node);
warning.source = 'remark-validate-links';
});
}

Expand Down

0 comments on commit fa62c71

Please sign in to comment.