Report .idt filename that threw exception

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2021-11-19 13:37:14 +01:00
parent ff40e60196
commit a53c4e2b87

View File

@ -529,6 +529,7 @@
// Build translations.
for (var i = 1, argc = WScript.Arguments.Unnamed.Length; i < argc; i++) {
try {
// Open and parse IDT file(s).
var
idt_src_path = WScript.Arguments.Unnamed(i),
@ -548,6 +549,9 @@
}
}
}
} catch (err) {
throw new Error(err.number, "" + WScript.Arguments.Unnamed(i) + ": " + err.description);
}
}
// Save to file.