only increment the metadata line index if you can parse the line

This commit is contained in:
ansuz
2019-08-21 12:26:46 +02:00
parent 1c37ec7aee
commit 0a0c64d240

View File

@@ -99,9 +99,9 @@ Meta.createLineHandler = function (ref, errorHandler) {
}
if (Array.isArray(line)) {
ref.index++;
try {
handleCommand(ref.meta, line);
ref.index++;
} catch (err2) {
errorHandler("METADATA_COMMAND_ERR", {
error: err2.stack,