Skip to content

Commit

Permalink
fix: throw error if path to the plan file is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg committed Nov 28, 2023
1 parent af4262d commit 1f3ca93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ if (options.path) {
} else {
generateBinary(options.path);
}
} else {
throw console.error(
"Error: Path to the plan file is required to generate plot",
);
}

function generateJSON(path: string) {
Expand Down

0 comments on commit 1f3ca93

Please sign in to comment.