Skip to content

Commit

Permalink
Merge pull request #37 from Sonlis/feature/explicit-error-display
Browse files Browse the repository at this point in the history
Display the error on failed processing of csv records on the manual run.
  • Loading branch information
dickwolff authored Feb 28, 2024
2 parents 51834f4 + 5cbe212 commit 0706462
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
next-version: 0.6.0
next-version: 0.6.1
assembly-informational-format: "{NuGetVersion}"
mode: ContinuousDeployment
branches:
Expand Down
10 changes: 7 additions & 3 deletions src/manual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ else {

// Determine convertor type and run conversion.
createAndRunConverter(
process.argv[2].toLocaleLowerCase(),
inputFile,
process.argv[2].toLocaleLowerCase(),
inputFile,
".",
() => { process.exit(0); },
() => { process.exit(99); });
(error) => {
console.log(`[e] Error details: ${error}`);
process.exit(99);
}
);
}

0 comments on commit 0706462

Please sign in to comment.