Skip to content

Handle 'showtmp' failure gracefully - #11

Merged
hanoglu merged 2 commits into
hanoglu:mainfrom
MaxGyver83:bugfix/never-add-showtmp-to-source-code
Aug 12, 2023
Merged

hanoglu merged 2 commits into
hanoglu:mainfrom
MaxGyver83:bugfix/never-add-showtmp-to-source-code

Conversation

@MaxGyver83

Copy link
Copy Markdown
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.

2 participants