Skip to content

Commit

Permalink
catch importLine errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten committed Mar 8, 2024
1 parent db92294 commit 15bde4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,12 @@ const importFiles = (task) =>
});

parser.on('end', () => {
// Insert all remaining lines
importLines(task, lines, model, totalLineCount);
try {
// Insert all remaining lines
importLines(task, lines, model, totalLineCount);
} catch (error) {
reject(error);
}
resolve();
});

Expand Down

0 comments on commit 15bde4b

Please sign in to comment.