Skip to content

Commit

Permalink
DEGIRO: Add warning when wrong export format is used (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff authored Jul 31, 2024
1 parent c20fcad commit 89d78f1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 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.16.1
next-version: 0.16.2
assembly-informational-format: "{NuGetVersion}"
mode: ContinuousDeployment
branches:
Expand Down
Binary file modified assets/export-degiro.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "export-to-ghostfolio",
"version": "0.16.1",
"version": "0.16.2",
"type": "module",
"description": "Convert multiple broker exports to Ghostfolio import",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions src/converters/degiroConverterV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export class DeGiroConverterV2 extends AbstractConverter {

if (err) {
errorMsg += ` Details: ${err.message}`

// Temporary error check for Transactions.csv
if (err.message.indexOf("length is 12, got 19")) {
console.error("[i] Detecting wrong input format. Have you exported the correct CSV file?");
console.error("[i] Export to Ghostfolio only supports Account.csv, not Transactions.csv!");
console.error("[i] See the export instructions in the README at https://git.new/JjA86vv");
}
}

return errorCallback(new Error(errorMsg))
Expand Down

0 comments on commit 89d78f1

Please sign in to comment.