Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create ttp cmd not to fail if folder does not exists #496

Closed
wants to merge 1 commit into from

Conversation

nicolagiacchetta
Copy link

@nicolagiacchetta nicolagiacchetta commented Apr 4, 2024

Summary:
The create ttp cmd is failing if the folder where we want to create the new ttp does not exist:

./ttpforge create ttp ttps/nicola/my-ttp.yaml
WARN    No config file specified and default configuration file not found!
WARN    You probably want to run `ttpforge init`!
WARN    However, if you know what you are doing, then carry on :)
ERROR   failed to run command:
        failed to create new TTP file: open ttps/nicola/my-ttp.yaml: no such file or directory

This PR fixes the issue.

Summary:
The create ttp cmd is failing if the folder where we want to create the new ttp does not exist:

```
[ngiacchetta@devvm1745.lla0 /data/users/ngiacchetta/nicola]$ ./ttpforge create ttp ttps/nicola/my-ttp.yaml
WARN    No config file specified and default configuration file not found!
WARN    You probably want to run `ttpforge init`!
WARN    However, if you know what you are doing, then carry on :)
ERROR   failed to run command:
        failed to create new TTP file: open ttps/nicola/my-ttp.yaml: no such file or directory

```

This diff fixes the issue.

Differential Revision: D55757581
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55757581

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4e24ca5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants