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

Handle 'showtmp' failure gracefully #11

Merged

Conversation

MaxGyver83
Copy link
Contributor

As long as you enter correct code in TermiC, there is no /tmp/termic-xxxx.c.tmp file. When you then accidentally call showtmp (instead of show), cat fails to find this tmp file which results in continue being skipped and the showtmp is pasted in the C main function.

This pull request: Check if the tmp file exists before printing it and print a message otherwise and continue in either case.

@hanoglu hanoglu merged commit 8762cc8 into hanoglu:main Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants