Skip to content

Commit

Permalink
Add file info
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Besson committed Mar 18, 2021
1 parent 9f034c5 commit 5916840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/extract-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ Process.prototype.parseTemplate = function (file, data) {
let msgctxt;

if (node.children.length !== 1) {
throw new Error(`On line ${line}\nNodes with v-translate directive must contains only one child`);
throw new Error(`${file}: on line ${line}\nNodes with v-translate directive must contains only one child`);
}

if (node.children[0].type !== NODETYPE_TEXT) {
throw new Error(`On line ${line}\nInterpolation is not yet supported. Please use $gettext`);
throw new Error(`${file}: on line ${line}\nInterpolation is not yet supported. Please use $gettext`);
}

for (const attribute of node.attrsList) {
Expand Down

0 comments on commit 5916840

Please sign in to comment.