Skip to content

Commit

Permalink
fix spelling of disabled (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Bilal authored Sep 12, 2024
1 parent 2fc5e59 commit 2ff36ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export async function runApp(args: types.GenerateCodeInput) {
if (!context.getInstance().isOverwriteFilesEnabled()) {
if (fs.existsSync(context.getInstance().getApiFilePath())) {
logger.fatal(
`Error: overwriting is disbaled and api.ts file already exists at ${context.getInstance().getApiFilePath()}. To enable file overwrite, please set 'NDC_OAS_FILE_OVERWRITE' environment variable to true, or use the --overwrite flag`,
`Error: overwriting is disabled and api.ts file already exists at ${context.getInstance().getApiFilePath()}. To enable file overwrite, please set 'NDC_OAS_FILE_OVERWRITE' environment variable to true, or use the --overwrite flag`,
);
exit(0);
}
if (fs.existsSync(context.getInstance().getFunctionsFilePath())) {
logger.fatal(
`Error: overwriting is disbaled and functions.ts file already exists at ${context.getInstance().getFunctionsFilePath()}. To enable file overwrite, please set 'NDC_OAS_FILE_OVERWRITE' environment variable to true, or use the --overwrite flag`,
`Error: overwriting is disabled and functions.ts file already exists at ${context.getInstance().getFunctionsFilePath()}. To enable file overwrite, please set 'NDC_OAS_FILE_OVERWRITE' environment variable to true, or use the --overwrite flag`,
);
exit(0);
}
Expand Down

0 comments on commit 2ff36ad

Please sign in to comment.