Skip to content

Commit

Permalink
fix: resolve CSV failure
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Alemayhu <[email protected]>
  • Loading branch information
aalemayhu committed Dec 27, 2024
1 parent 39895d3 commit 4e72be5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/parser/DeckParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class DeckParser {
this.noLimits = input.noLimits;
this.globalTags = null;
this.payload = [];
this.workspace = new Workspace(true, 'fs');
this.workspace = input.workspace ?? new Workspace(true, 'fs');
this.customExporter = new CustomExporter(
input.name,
this.workspace.location
Expand Down
3 changes: 2 additions & 1 deletion src/lib/parser/WorkSpace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class Workspace {
if (apkg) {
resolve(fs.readFileSync(path.join(this.location, apkg)));
} else {
reject(null);
console.log('No APKG file found', this.location);
reject(new Error('No APKG file found'));
}
});
});
Expand Down

0 comments on commit 4e72be5

Please sign in to comment.